Skip to content

Commit

Permalink
ExceptionHandling fix (Py2 vs Py3)
Browse files Browse the repository at this point in the history
  • Loading branch information
OllisGit committed Aug 20, 2020
1 parent 5435d0e commit 168ead1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion octoprint_SpoolManager/DatabaseManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 168ead1

Please sign in to comment.