- Notifications
You must be signed in to change notification settings - Fork673
Commit57749d4
fix(cli): support binary files with
Support binary files being used in the CLI with arguments using the`@` notation. For example `--avatar @/path/to/avatar.png`Also explicitly catch the common OSError exception, which is theparent exception for things like: FileNotFoundError, PermissionErrorand more exceptions.Remove the bare exception handling. We would rather have the fulltraceback of any exceptions that we don't know about and add themlater if needed.Closes:#2752@
notation1 parentdae9e52 commit57749d4
File tree
3 files changed
+21
-11
lines changed- gitlab
- tests
- functional/cli
- unit
3 files changed
+21
-11
lines changedLines changed: 10 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
| 4 | + | |
4 | 5 |
| |
5 | 6 |
| |
6 | 7 |
| |
| |||
298 | 299 |
| |
299 | 300 |
| |
300 | 301 |
| |
301 |
| - | |
| 302 | + | |
| 303 | + | |
302 | 304 |
| |
303 |
| - | |
| 305 | + | |
304 | 306 |
| |
305 |
| - | |
306 |
| - | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
307 | 313 |
| |
308 | 314 |
| |
309 | 315 |
| |
|
Lines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
540 | 540 |
| |
541 | 541 |
| |
542 | 542 |
| |
543 |
| - | |
| 543 | + | |
544 | 544 |
| |
545 | 545 |
| |
546 | 546 |
| |
547 | 547 |
| |
548 | 548 |
| |
| 549 | + | |
| 550 | + | |
| 551 | + | |
549 | 552 |
| |
550 | 553 |
| |
551 | 554 |
| |
| |||
555 | 558 |
| |
556 | 559 |
| |
557 | 560 |
| |
| 561 | + | |
| 562 | + | |
558 | 563 |
| |
559 | 564 |
| |
560 | 565 |
| |
|
Lines changed: 5 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
| 2 | + | |
2 | 3 |
| |
3 | 4 |
| |
4 | 5 |
| |
5 | 6 |
| |
6 |
| - | |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
| |||
62 | 62 |
| |
63 | 63 |
| |
64 | 64 |
| |
65 |
| - | |
| 65 | + | |
66 | 66 |
| |
67 | 67 |
| |
68 | 68 |
| |
| |||
90 | 90 |
| |
91 | 91 |
| |
92 | 92 |
| |
93 |
| - | |
| 93 | + | |
94 | 94 |
| |
95 | 95 |
| |
96 |
| - | |
97 |
| - | |
98 |
| - | |
| 96 | + | |
| 97 | + | |
99 | 98 |
| |
100 | 99 |
| |
101 | 100 |
| |
|
0 commit comments
Comments
(0)