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
fork-5.53.8
Christian Clauss 2021-01-14 12:18:39 +01:00 zatwierdzone przez Greyson Parrelli
rodzic c149e008fd
commit 84a61b01ca
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -96,7 +96,7 @@ try:
print("\nTo include this in the distribution, copy it to the project's assets/databases/ directory.") 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.") 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: if connection:
connection.rollback() connection.rollback()
print("Error: %s" % e.args[0]) print("Error: %s" % e.args[0])