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:
Christian Clauss 2021-01-14 12:18:39 +01:00 committed by Greyson Parrelli
parent c149e008fd
commit 84a61b01ca

View file

@ -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])