X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fclient%2Fmanifolduploader.py;h=66874baee629e544c5890b32008d6c215a6f4eca;hb=a0ef6e7c91c3c8fa376943d28fec8c5c204a78cd;hp=c291a42832797036d1aa90e3dfd9eedd7bba0354;hpb=b835890db506439d1925577ccdc9ef4f0b3dc6ac;p=sfa.git diff --git a/sfa/client/manifolduploader.py b/sfa/client/manifolduploader.py index c291a428..66874bae 100755 --- a/sfa/client/manifolduploader.py +++ b/sfa/client/manifolduploader.py @@ -113,7 +113,7 @@ class ManifoldUploader: try: self.logger.debug("Using new v2 method forward+annotation@%s %s"%(platform,message)) retcod2=manifold.forward (query, annotation) - except Exception,e: + except Exception as e: # xxx we need a constant constant for UNKNOWN, how about using 1 MANIFOLD_UNKNOWN=1 retcod2={'code':MANIFOLD_UNKNOWN,'description':"%s"%e} @@ -129,7 +129,7 @@ class ManifoldUploader: self.logger.debug("****** full retcod2") for (k,v) in retcod2.items(): self.logger.debug("**** %s: %s"%(k,v)) return False - except Exception, e: + except Exception as e: if message: self.logger.error("Could not upload %s %s"%(message,e)) else: self.logger.error("Could not upload credential %s"%e) if self.logger.debugEnabled():