Commit 7f9726d
committed
Refactor file exitence check to
Moves the logic of checking for files existence into the method
`_upload_file` as it was handling the process of uploading the
file.
Changed the error message to be more appropriate to the raised
error.
Refactored to write error via `self._io`._upload_file
1 parent e833fad commit 7f9726d
File tree
2 files changed
+5
-7
lines changed- src/poetry/publishing
- tests/publishing
2 files changed
+5
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | 215 | | |
220 | 216 | | |
221 | 217 | | |
| |||
228 | 224 | | |
229 | 225 | | |
230 | 226 | | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
| 71 | + | |
0 commit comments