=== modified file 'openlp/core/api/http/wsgiapp.py'
--- openlp/core/api/http/wsgiapp.py 2017-08-12 20:26:39 +0000
+++ openlp/core/api/http/wsgiapp.py 2017-08-24 03:37:15 +0000
@@ -139,7 +139,11 @@
"""
if route not in self.static_routes:
root = os.path.join(str(AppLocation.get_section_data_path('remotes')))
- self.static_routes[route] = DirectoryApp(os.path.abspath(os.path.join(root, static_dir)))
+ static_path = os.path.abspath(os.path.join(root, static_dir))
+ if not os.path.exists(static_path):
+ log.error('Static path "%s" does not exist. Skipping creating static route/', static_path)
+ return
+ self.static_routes[route] = DirectoryApp(static_path)
def dispatch(self, request):
"""