mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
python3 - 'as' needed in exceptions instead of comma
This commit is contained in:
@@ -14,7 +14,7 @@ FILE_2 = "/tmp/example_file.xac"
|
||||
session = None
|
||||
try:
|
||||
session = Session(FILE_1)
|
||||
except GnuCashBackendException, backend_exception:
|
||||
except GnuCashBackendException as backend_exception:
|
||||
assert( ERR_FILEIO_FILE_NOT_FOUND in backend_exception.errors)
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ session.destroy()
|
||||
session = Session(FILE_2)
|
||||
try:
|
||||
session_2 = Session(FILE_2)
|
||||
except GnuCashBackendException, backend_exception:
|
||||
except GnuCashBackendException as backend_exception:
|
||||
assert( ERR_BACKEND_LOCKED in backend_exception.errors )
|
||||
session.end()
|
||||
session.destroy()
|
||||
|
||||
Reference in New Issue
Block a user