X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fclient%2Fsfi.py;h=8964768d0436080da7eec4b1e8157f1600594d1c;hb=78cfac29ad0d139fd2a909375bb2ea7d46c305ee;hp=be94f8205374b7a721fb10574f2b036d9664d284;hpb=4ef76bd85ea24906c4ebb580c896fe1084d6ba88;p=sfa.git diff --git a/sfa/client/sfi.py b/sfa/client/sfi.py index be94f820..8964768d 100644 --- a/sfa/client/sfi.py +++ b/sfa/client/sfi.py @@ -990,7 +990,7 @@ use this if you mean an authority instead""") try: list = self.registry().List(hrn, self.my_credential_string, options) except IndexError: - raise Exception, "Not enough parameters for the 'list' command" + raise Exception("Not enough parameters for the 'list' command") # filter on person, slice, site, node, etc. # This really should be in the self.filter_records funct def comment... @@ -1104,7 +1104,7 @@ use this if you mean an authority instead""") elif record_dict['type'] in ['slice']: try: cred = self.slice_credential_string(record_dict['hrn']) - except ServerException, e: + except ServerException as e: # XXX smbaker -- once we have better error return codes, update this # to do something better than a string compare if "Permission error" in e.args[0]: