Parcourir la source

callback template implementaion

Hal De il y a 4 ans
Parent
commit
b746f1ee7c
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      app/app.py

+ 2 - 1
app/app.py

@@ -1052,7 +1052,8 @@ class DeviceCallback(Resource):
     else:
       row = await db.fetch_one(query='SELECT url FROM callback_urls WHERE device = :device',
                                values={'device': device})
-      url = row['url']
+      if row is not None:
+        url = row['url']
     return successCallbackURL(device, url)
 
 manager.connect()