[open-ils-commits] r1419 - servres/trunk/conifer/integration (artunit)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Apr 22 16:18:03 EDT 2011
Author: artunit
Date: 2011-04-22 16:17:58 -0400 (Fri, 22 Apr 2011)
New Revision: 1419
Modified:
servres/trunk/conifer/integration/uwindsor.py
Log:
handle placehold for CAMPUS_INFO call
Modified: servres/trunk/conifer/integration/uwindsor.py
===================================================================
--- servres/trunk/conifer/integration/uwindsor.py 2011-04-22 18:31:43 UTC (rev 1418)
+++ servres/trunk/conifer/integration/uwindsor.py 2011-04-22 20:17:58 UTC (rev 1419)
@@ -68,9 +68,13 @@
def _campus_info(self, name, *args):
url = '%s%s?%s' % (settings.CAMPUS_INFO_SERVICE, name, simplejson.dumps(args))
- raw = urlopen(url).read()
- return simplejson.loads(raw)
+ try:
+ raw = urlopen(url).read()
+ return simplejson.loads(raw)
+ except:
+ return None
+
def external_person_lookup(self, userid):
"""
Given a userid, return either None (if the user cannot be found),
More information about the open-ils-commits
mailing list