Automagic: Catch remote download exceptions

This commit is contained in:
Mike Auty
2021-08-11 21:22:03 +01:00
parent 3b2aae40d2
commit bb40a8a207
@@ -166,8 +166,11 @@ class SymbolBannerCache(interfaces.automagic.AutomagicInterface):
banner_location = constants.REMOTE_ISF_URL
if not constants.OFFLINE:
rbf = RemoteBannerFormat(banner_location)
rbf.process(banners, operating_system)
try:
rbf = RemoteBannerFormat(banner_location)
rbf.process(banners, operating_system)
except urllib.error.URLError:
vollog.debug(f"Unable to download remote banner list from {banner_location}")
class RemoteBannerFormat: