mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-10-31 22:19:00 +00:00
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
This commit is contained in:
parent
d6abd9b32d
commit
060f515aea
1 changed files with 2 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue