From 84a61b01caf61a7a087ebd7e7c7c3bf335ef9d91 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Thu, 14 Jan 2021 12:18:39 +0100 Subject: [PATCH] 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 --- apntool/apntool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apntool/apntool.py b/apntool/apntool.py index 2c6e6cacf..a687d4bf5 100644 --- a/apntool/apntool.py +++ b/apntool/apntool.py @@ -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])