소스 검색

fixed the missing file error.

Signed-off-by: Nicholas Tan Jerome <nicholas.jerome@kit.edu>
Nicholas Tan Jerome 6 년 전
부모
커밋
17ee9d4bba
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      core.py

+ 2 - 2
core.py

@@ -245,8 +245,8 @@ class StatusHandler(tornado.web.RequestHandler):
                 print(exc)
 
         if not os.path.isfile("./bora/cache.yaml"): 
-            self.write("BORA is loading data, please refresh the page again in a moment.")
-            return
+            print "BORA is loading data, please refresh the page again in a moment."
+            open("cache.yaml","w")
 
         with open("./bora/cache.yaml", 'r') as vstream:
             try: