diff --git a/main.py b/main.py
index 5948b13ce3a58e91fe11ef758df0ffe53af878b5..5ef70e402c235e6eb9fe34533df7b6cebf2fa2e6 100644
--- a/main.py
+++ b/main.py
@@ -88,8 +88,10 @@ try:
         password = environ["passwordToShort"]
     else:
         passwordProtected = False
+        password = ""
 except:
     passwordProtected = False
+    password = ""
 
 if(loginEnabled):
     try: #Try to get the oauth keys, if it fails, abort and print a message to console