diff options
| author | Cody Logan <clpo13@gmail.com> | 2023-09-26 10:48:13 -0700 |
|---|---|---|
| committer | Cody Logan <clpo13@gmail.com> | 2023-09-26 10:48:13 -0700 |
| commit | f6871103d61a1aed2e537bb6ec00b47948f0610d (patch) | |
| tree | c8c31ad3807033b21b50944d9210e10da414380c /wikiget/dl.py | |
| parent | a310af0aa10f8b5a370c16ac3a7dcdd12e13f729 (diff) | |
| download | wikiget-f6871103d61a1aed2e537bb6ec00b47948f0610d.tar.gz wikiget-f6871103d61a1aed2e537bb6ec00b47948f0610d.zip | |
Additional cleanup with Ruff
Diffstat (limited to 'wikiget/dl.py')
| -rw-r--r-- | wikiget/dl.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wikiget/dl.py b/wikiget/dl.py index 06115a3..aa79ae3 100644 --- a/wikiget/dl.py +++ b/wikiget/dl.py @@ -130,7 +130,7 @@ def download(dl, args): else: try: fd = open(dest, "wb") - except IOError as e: + except OSError as e: print("File could not be written. The following error was encountered:") print(e) sys.exit(1) |
