# HG changeset patch # User Søren Løvborg # Date 2016-01-05 18:50:58 # Node ID 07f63824a52d3ed8ab829cd15cee05321f56ea7a # Parent 21f07c4b510f5530e0b5c6dec793f859f6c1ec6d admin: remove check for empty Ui table The table is populated on database creation, and assumed to be populated so many places in the code, we're unlikely to even reach this point if it's empty. (E.g. web.push_ssl must be defined to push/pull/fetch both Mercurial and Git repositories.) diff --git a/kallithea/controllers/admin/settings.py b/kallithea/controllers/admin/settings.py --- a/kallithea/controllers/admin/settings.py +++ b/kallithea/controllers/admin/settings.py @@ -64,8 +64,6 @@ class SettingsController(BaseController) def _get_hg_ui_settings(self): ret = Ui.query().all() - if not ret: - raise Exception('Could not get application ui settings !') settings = {} for each in ret: k = each.ui_section + '_' + each.ui_key