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:
parent
4ebcbd8c79
commit
c05f9c1aab
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user