changeset 5677:07f63824a52d

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.)
author Søren Løvborg <sorenl@unity3d.com>
date Tue, 05 Jan 2016 18:50:58 +0100
parents 21f07c4b510f
children 75d89f00a4b5
files kallithea/controllers/admin/settings.py
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/controllers/admin/settings.py	Tue Jan 05 19:19:09 2016 +0100
+++ b/kallithea/controllers/admin/settings.py	Tue Jan 05 18:50:58 2016 +0100
@@ -64,8 +64,6 @@
     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