summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Admin
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2009-05-07 12:25:10 +0000
committerNarayan Desai <desai@mcs.anl.gov>2009-05-07 12:25:10 +0000
commit5832953aa1db82f553f6bfcb9ef273d351d1ae69 (patch)
treec0c898f4bff22363bf0c41dab6f3aa95776004d2 /src/lib/Server/Admin
parent5b415888ffc2dfd8a85f38f09fd64edd49ef5a71 (diff)
downloadbcfg2-5832953aa1db82f553f6bfcb9ef273d351d1ae69.tar.gz
bcfg2-5832953aa1db82f553f6bfcb9ef273d351d1ae69.tar.bz2
bcfg2-5832953aa1db82f553f6bfcb9ef273d351d1ae69.zip
Snapshots: Remove ad-hoc error handling in favor of normal bcfg2-admin mode handling
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5211 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Admin')
-rw-r--r--src/lib/Server/Admin/Snapshots.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lib/Server/Admin/Snapshots.py b/src/lib/Server/Admin/Snapshots.py
index ab3fbc572..576f2251f 100644
--- a/src/lib/Server/Admin/Snapshots.py
+++ b/src/lib/Server/Admin/Snapshots.py
@@ -1,10 +1,7 @@
import sys
-try:
- import sqlalchemy, sqlalchemy.orm
-except:
- # FIXME should probably do something smarter here for folks without SA
- pass
+# prereq issues can be signaled with ImportError, so no try needed
+import sqlalchemy, sqlalchemy.orm
import Bcfg2.Server.Admin
import Bcfg2.Server.Snapshots
import Bcfg2.Server.Snapshots.model