From: Dan Scott Date: Wed, 31 Jul 2013 19:32:35 +0000 (-0400) Subject: Do a better job of tolerating missing credentials.py X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=406ea1f0bdd7b858ff57fe4f968c5033ac51286b;p=contrib%2FConifer.git Do a better job of tolerating missing credentials.py Signed-off-by: Dan Scott --- diff --git a/tools/patron-load/ldap_osrf_sync b/tools/patron-load/ldap_osrf_sync index cf3c9b8edb..9d2bb63dd2 100755 --- a/tools/patron-load/ldap_osrf_sync +++ b/tools/patron-load/ldap_osrf_sync @@ -61,7 +61,10 @@ import osrf.net_obj import tempfile import urllib2 -import credentials +try: + import credentials +except: + sys.exit(__doc__) class User: """