##// END OF EJS Templates
subscribers: make creation of routes.js safer....
marcink -
r2823:e48f0fdb default
parent child Browse files
Show More
@@ -241,8 +241,11 b' def write_js_routes_if_enabled(event):'
241 jsroutes_file_path = os.path.join(
241 jsroutes_file_path = os.path.join(
242 static_path, 'js', 'rhodecode', 'routes.js')
242 static_path, 'js', 'rhodecode', 'routes.js')
243
243
244 with io.open(jsroutes_file_path, 'w', encoding='utf-8') as f:
244 try:
245 f.write(jsroutes_file_content)
245 with io.open(jsroutes_file_path, 'w', encoding='utf-8') as f:
246 f.write(jsroutes_file_content)
247 except Exception:
248 log.exception('Failed to write routes.js into %s', jsroutes_file_path)
246
249
247
250
248 class Subscriber(object):
251 class Subscriber(object):
General Comments 0
You need to be logged in to leave comments. Login now