diff --git a/manifest.json b/manifest.json index 38552c4..8ec8221 100644 --- a/manifest.json +++ b/manifest.json @@ -47,7 +47,7 @@ } }, "short_name": "Followers", - "version": "0.3.0", + "version": "0.3.1", "web_accessible_resources": [ "css/*.css", "images/*.svg", diff --git a/pkg/followers.py b/pkg/followers.py index fc98a3c..5eb2d85 100644 --- a/pkg/followers.py +++ b/pkg/followers.py @@ -9,17 +9,11 @@ import threading try: - from gateway_addon import APIHandler, APIResponse + from gateway_addon import APIHandler, APIResponse, Database #print("succesfully loaded APIHandler and APIResponse from gateway_addon") except: print("Import APIHandler and APIResponse from gateway_addon failed. Use at least WebThings Gateway version 0.10") sys.exit(1) - -try: - from gateway_addon import Database -except: - print("Gateway not loaded?!") - sys.exit(1) @@ -154,8 +148,8 @@ def add_from_config(self): config = database.load_config() database.close() - except: - print("Error! Failed to open settings database.") + except Exception as ex: + print("Error! Failed to open settings database: " + str(ex)) if not config: print("Error loading config from database")