mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-01-13 12:00:03 +01:00
little change in error handling
This commit is contained in:
parent
86179f8e11
commit
dc3e45042a
|
|
@ -92,7 +92,7 @@ try:
|
|||
args = parser.parse_args()
|
||||
|
||||
except:
|
||||
logging.exception("cannot parse args")
|
||||
logging.error("cannot parse args")
|
||||
else:
|
||||
try:
|
||||
|
||||
|
|
@ -369,12 +369,14 @@ except:
|
|||
logging.exception("unknown error")
|
||||
finally:
|
||||
try:
|
||||
logging.debug("BOSWatch shuting down")
|
||||
rtl_fm.terminate()
|
||||
logging.debug("rtl_fm terminated")
|
||||
multimon_ng.terminate()
|
||||
logging.debug("multimon-ng terminated")
|
||||
logging.debug("exiting BOSWatch")
|
||||
except:
|
||||
logging.exception("failed in clean-up routine")
|
||||
logging.warning("failed in clean-up routine")
|
||||
finally:
|
||||
logging.info("BOSWatch exit()")
|
||||
exit(0)
|
||||
Loading…
Reference in a new issue