kbberendsen commited on
Commit
5bb732d
1 Parent(s): f94c9eb

cache error handling

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -7,8 +7,12 @@ from matplotlib import cm
7
  import numpy as np
8
  import os
9
 
10
- cache_dir = os.path.exists("cache")
11
- ff1.Cache.enable_cache(cache_dir)
 
 
 
 
12
 
13
  app_ui = ui.page_fluid(
14
  ui.div(
 
7
  import numpy as np
8
  import os
9
 
10
+ try:
11
+ cache_dir = os.path.exists("cache")
12
+ ff1.Cache.enable_cache(cache_dir)
13
+ except:
14
+ print('Cache error!!')
15
+
16
 
17
  app_ui = ui.page_fluid(
18
  ui.div(