diff core/download.py @ 1225:c901261c6ce8 modernize

Add unit tests for core.download.
author Brian Neal <bgneal@gmail.com>
date Sun, 06 Apr 2025 15:38:29 -0500 (30 hours ago)
parents ef1558941bc9
children
line wrap: on
line diff
--- a/core/download.py	Mon Mar 10 20:28:14 2025 -0500
+++ b/core/download.py	Sun Apr 06 15:38:29 2025 -0500
@@ -55,7 +55,7 @@
         with open(path, 'wb') as fp:
             r.raw.decode_content = True
             shutil.copyfileobj(r.raw, fp)
-    except requests.RequestException:
+    except IOError:
         logger.exception("download_file download exception")
         os.remove(path)
         raise