Show More
@@ -241,8 +241,11 b' def write_js_routes_if_enabled(event):' | |||
|
241 | 241 | jsroutes_file_path = os.path.join( |
|
242 | 242 | static_path, 'js', 'rhodecode', 'routes.js') |
|
243 | 243 | |
|
244 | with io.open(jsroutes_file_path, 'w', encoding='utf-8') as f: | |
|
245 |
f |
|
|
244 | try: | |
|
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 | 251 | class Subscriber(object): |
General Comments 0
You need to be logged in to leave comments.
Login now