make sure to only instance SfaFault with a general fault, not another SfaFault
authorTony Mack <tmack@cs.princeton.edu>
Thu, 22 Jul 2010 20:27:16 +0000 (20:27 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Thu, 22 Jul 2010 20:27:16 +0000 (20:27 +0000)
sfa/util/api.py

index f3791ce..9424b49 100644 (file)
@@ -192,6 +192,8 @@ class BaseAPI:
 
         try:
             result = self.call(source, method, *args)
+        except SfaFault, fault:
+            result = fault 
         except Exception, fault:
             #traceback.print_exc(file = log)
             result = SfaAPIError(fault)