Do a better job of tolerating missing credentials.py
authorDan Scott <dscott@laurentian.ca>
Wed, 31 Jul 2013 19:32:35 +0000 (15:32 -0400)
committerDan Scott <dscott@laurentian.ca>
Fri, 17 Jul 2015 15:13:37 +0000 (11:13 -0400)
Signed-off-by: Dan Scott <dscott@laurentian.ca>
tools/patron-load/ldap_osrf_sync

index cf3c9b8..9d2bb63 100755 (executable)
@@ -61,7 +61,10 @@ import osrf.net_obj
 import tempfile
 import urllib2
 
-import credentials
+try:
+    import credentials
+except:
+    sys.exit(__doc__)
 
 class User:
     """