Show More
@@ -117,7 +117,7 b' class SettingsController(BaseController)' | |||||
117 | if setting_id == 'whoosh': |
|
117 | if setting_id == 'whoosh': | |
118 | repo_location = self.get_hg_ui_settings()['paths_root_path'] |
|
118 | repo_location = self.get_hg_ui_settings()['paths_root_path'] | |
119 | full_index = request.POST.get('full_index', False) |
|
119 | full_index = request.POST.get('full_index', False) | |
120 |
|
|
120 | run_task(tasks.whoosh_index, repo_location, full_index) | |
121 |
|
121 | |||
122 | h.flash(_('Whoosh reindex task scheduled'), category='success') |
|
122 | h.flash(_('Whoosh reindex task scheduled'), category='success') | |
123 | if setting_id == 'global': |
|
123 | if setting_id == 'global': | |
@@ -147,7 +147,7 b' class SettingsController(BaseController)' | |||||
147 | h.flash(_('Updated application settings'), |
|
147 | h.flash(_('Updated application settings'), | |
148 | category='success') |
|
148 | category='success') | |
149 |
|
149 | |||
150 | except: |
|
150 | except Exception: | |
151 | log.error(traceback.format_exc()) |
|
151 | log.error(traceback.format_exc()) | |
152 | h.flash(_('error occurred during updating application settings'), |
|
152 | h.flash(_('error occurred during updating application settings'), | |
153 | category='error') |
|
153 | category='error') |
General Comments 0
You need to be logged in to leave comments.
Login now