ck %!s(int64=4) %!d(string=hai) anos
pai
achega
2d54f1e572
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      handlers/HandlerBase.py

+ 4 - 1
handlers/HandlerBase.py

@@ -110,7 +110,10 @@ class BaseHandler(RequestHandler,DateUtils):
             if not Authorization:
                 return False
             print(Authorization)
-            origStr = Authorization.split(' ')[1][::-1]
+            try:
+                origStr = Authorization.split(' ')[1][::-1]
+            except:
+                return False
             if (len(origStr) % 3 == 1):
                 origStr += "=="
             elif (len(origStr) % 3 == 2):