1
0
mirror of https://github.com/JoelBender/bacpypes synced 2025-09-28 22:15:23 +08:00

update exception catching syntax

This commit is contained in:
Joel Bender 2015-09-16 14:49:14 -04:00
parent 4ebcbd8c79
commit c05f9c1aab

View File

@ -93,8 +93,8 @@ try:
run()
except Exception, e:
_log.exception("an error has occurred: %s", e)
except Exception as err:
_log.exception("an error has occurred: %s", err)
finally:
_log.debug("finally")