improve error handling on band and bookmark loading

This commit is contained in:
Jakob Ketterl
2020-02-01 21:37:43 +01:00
parent 41bc168a38
commit 8036758857
3 changed files with 9 additions and 3 deletions

View File

@ -58,7 +58,10 @@ class Bandplan(object):
except FileNotFoundError:
pass
except json.JSONDecodeError:
logger.exception("error while parsing bandplan from %s", file)
logger.exception("error while parsing bandplan file %s", file)
return []
except Exception:
logger.exception("error while processing bandplan from %s", file)
return []
return []