diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2014-01-24 19:29:09 +0100 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2014-01-24 19:34:07 +0100 |
commit | ab2b8954307174a4999cc1a63eaeadfb0921093e (patch) | |
tree | 97e3427e62639a8d8526b52593a553cc02a18b6d | |
parent | 731d7605be0b3f7c86638fc4e3b68271f9741db1 (diff) | |
download | ipsilon-ab2b8954307174a4999cc1a63eaeadfb0921093e.tar.gz ipsilon-ab2b8954307174a4999cc1a63eaeadfb0921093e.tar.xz ipsilon-ab2b8954307174a4999cc1a63eaeadfb0921093e.zip |
Remove usage of `except Exception`
-rwxr-xr-x | ipsilon/admin/common.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ipsilon/admin/common.py b/ipsilon/admin/common.py index 834823c..fc4a0a1 100755 --- a/ipsilon/admin/common.py +++ b/ipsilon/admin/common.py @@ -21,6 +21,7 @@ from ipsilon.util.data import Store from ipsilon.util.page import Page from ipsilon.util.user import UserSession import cherrypy +import sqlite3 def admin_protect(fn): @@ -75,7 +76,7 @@ class LoginPluginPage(Page): store = Store() store.save_login_plugin_config(self._obj.name, new_values) message = "New configuration saved." - except Exception, e: + except sqlite3.Error: # TODO: change to data operation exception message = "Failed to save data!" # And only if it succeeds we change the live object |