logger.exception cleanup

This commit is contained in:
hroff-1902 2019-05-24 04:04:07 +03:00
parent 6467d3b58e
commit 7b968a2401

View File

@ -54,8 +54,8 @@ def main(sysargv: List[str]) -> None:
except OperationalException as e:
logger.error(str(e))
return_code = 2
except BaseException as e:
logger.exception('Fatal exception! ' + str(e))
except BaseException:
logger.exception('Fatal exception!')
finally:
if worker:
worker.exit()