Gracefully handle running on an unconfigured IPA server

This commit is contained in:
Rob Crittenden committed 2008-10-30 10:25:01 -04:00
1 parent 4699fc534b
commit c13726ff66
1 file changed
+4
+4
View File
@@ -120,3 +120,7 @@ except SystemExit, e:
sys.exit(e)
except KeyboardInterrupt, e:
sys.exit(1)
except config.IPAConfigError, e:
print "An IPA server to update cannot be found. Has one been configured yet?"
print "The error was: %s" % e
sys.exit(1)