SuhasGholkar commited on
Commit
ce2efa3
·
verified ·
1 Parent(s): 9d9a715

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -9
app.py CHANGED
@@ -34,15 +34,6 @@ logging.basicConfig(stream=sys.stdout,
34
  applog = logging.getLogger("app")
35
  #applog.info("APP: Using DB_PATH=%s", DB_PATH)
36
 
37
- try:
38
- os.makedirs("/data", exist_ok=True)
39
- # make sure it is writable even if image user changes
40
- os.chmod("/data", 0o777)
41
- except Exception as e:
42
- import logging, sys
43
- logging.basicConfig(stream=sys.stdout, level=logging.INFO, force=True)
44
- logging.getLogger("app").warning("could not ensure /data perms: %s", e)
45
-
46
  def main():
47
  # Initialize schemas and bootstrap admin
48
  init_auth_schema()
 
34
  applog = logging.getLogger("app")
35
  #applog.info("APP: Using DB_PATH=%s", DB_PATH)
36
 
 
 
 
 
 
 
 
 
 
37
  def main():
38
  # Initialize schemas and bootstrap admin
39
  init_auth_schema()