JohnSmith9982 commited on
Commit
f787298
1 Parent(s): 593e272

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -26,8 +26,9 @@ else:
26
 
27
  authflag = False
28
 
29
- if dockerflag:
30
  my_api_key = os.environ.get("my_api_key")
 
31
  if my_api_key == "empty":
32
  logging.error("Please give a api key!")
33
  sys.exit(1)
 
26
 
27
  authflag = False
28
 
29
+ if not my_api_key:
30
  my_api_key = os.environ.get("my_api_key")
31
+ if dockerflag:
32
  if my_api_key == "empty":
33
  logging.error("Please give a api key!")
34
  sys.exit(1)