From 168ead1fd4db297847da9604938b53c10cd763e2 Mon Sep 17 00:00:00 2001 From: OllisGit Date: Thu, 20 Aug 2020 18:22:43 +0200 Subject: [PATCH] ExceptionHandling fix (Py2 vs Py3) --- octoprint_SpoolManager/DatabaseManager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octoprint_SpoolManager/DatabaseManager.py b/octoprint_SpoolManager/DatabaseManager.py index 8d8eae98..a9befad0 100644 --- a/octoprint_SpoolManager/DatabaseManager.py +++ b/octoprint_SpoolManager/DatabaseManager.py @@ -58,7 +58,7 @@ def _createOrUpgradeSchemeIfNecessary(self): schemeVersionFromDatabaseModel = PluginMetaDataModel.get(PluginMetaDataModel.key == PluginMetaDataModel.KEY_DATABASE_SCHEME_VERSION) pass except Exception as e: - errorMessage = e.message + errorMessage = str(e) if errorMessage.startswith("no such table"): self._createDatabaseTables() else: