improve error handling on band and bookmark loading
This commit is contained in:
parent
41bc168a38
commit
8036758857
@ -58,7 +58,10 @@ class Bandplan(object):
|
|||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
pass
|
pass
|
||||||
except json.JSONDecodeError:
|
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 []
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
@ -50,7 +50,10 @@ class Bookmarks(object):
|
|||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
pass
|
pass
|
||||||
except json.JSONDecodeError:
|
except json.JSONDecodeError:
|
||||||
logger.exception("error while parsing bookmarks from %s", file)
|
logger.exception("error while parsing bookmarks file %s", file)
|
||||||
|
return []
|
||||||
|
except Exception:
|
||||||
|
logger.exception("error while processing bookmarks from %s", file)
|
||||||
return []
|
return []
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
@ -145,5 +145,5 @@ class PropertyManager(object):
|
|||||||
self[name] = value
|
self[name] = value
|
||||||
return self
|
return self
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
logger.debug("not found: %s", file)
|
pass
|
||||||
raise ConfigNotFoundException("no usable config found! please make sure you have a valid configuration file!")
|
raise ConfigNotFoundException("no usable config found! please make sure you have a valid configuration file!")
|
||||||
|
Loading…
Reference in New Issue
Block a user