From 060f515aea5afa255e3441a1b357de5280886a69 Mon Sep 17 00:00:00 2001 From: Joel Bradshaw Date: Tue, 1 Feb 2022 21:54:51 -0800 Subject: [PATCH] Be even more conservative on errors This runs at startup of anything, so we should be extra sure to not break anything, and lots of things can go wrong downloading files from the internet --- bookwyrm/apps.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bookwyrm/apps.py b/bookwyrm/apps.py index 10ccc89f..8940edcc 100644 --- a/bookwyrm/apps.py +++ b/bookwyrm/apps.py @@ -22,6 +22,8 @@ def download_file(url, destination): logger.error("Failed to download file %s", url) except OSError: logger.error("Couldn't open font file %s for writing", destination) + except: # pylint: disable=bare-except + logger.exception("Unknown error in file download") class BookwyrmConfig(AppConfig):