Fix syntax error in apntool.py
Old-style exceptions are syntax errors in Python 3 while new-style exceptions work as expected on both Python 2 and Python 3. Closes #10622
This commit is contained in:
parent
c149e008fd
commit
84a61b01ca
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ try:
|
|||
print("\nTo include this in the distribution, copy it to the project's assets/databases/ directory.")
|
||||
print("If you support API 10 or lower, you must use the gzipped version to avoid corruption.")
|
||||
|
||||
except sqlite3.Error, e:
|
||||
except sqlite3.Error as e:
|
||||
if connection:
|
||||
connection.rollback()
|
||||
print("Error: %s" % e.args[0])
|
||||
|
|
Loading…
Add table
Reference in a new issue