Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
flatsiedatsie authored Aug 12, 2020
1 parent 9b9195a commit 2e82bf2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
}
},
"short_name": "Followers",
"version": "0.3.0",
"version": "0.3.1",
"web_accessible_resources": [
"css/*.css",
"images/*.svg",
Expand Down
12 changes: 3 additions & 9 deletions pkg/followers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)



Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 2e82bf2

Please sign in to comment.