From 41f6656a0919ba05dab6469a1fa0fd79a526c22e Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Thu, 17 Jan 2013 16:16:56 -0500 Subject: [PATCH] formatting --- sfa/trust/auth.py | 2 +- sfa/util/faults.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sfa/trust/auth.py b/sfa/trust/auth.py index 4eedb09d..d217b1c8 100644 --- a/sfa/trust/auth.py +++ b/sfa/trust/auth.py @@ -40,7 +40,7 @@ class Auth: if xrns: for xrn in xrns: if not xrn: - raise BadArgs("Invalid urn or hrn: %s" % hrn) + raise BadArgs("Invalid urn or hrn") if not isinstance(xrns, list): diff --git a/sfa/util/faults.py b/sfa/util/faults.py index 245d90c2..1a4e92e9 100644 --- a/sfa/util/faults.py +++ b/sfa/util/faults.py @@ -35,12 +35,12 @@ class SfaFault(xmlrpclib.Fault): class Forbidden(SfaFault): def __init__(self, extra = None): - faultString = "FORBIDDEN:" + faultString = "FORBIDDEN" SfaFault.__init__(self, GENICODE.FORBIDDEN, faultString, extra) class BadArgs(SfaFault): def __init__(self, extra = None): - faultString = "BADARGS:" + faultString = "BADARGS" SfaFault.__init__(self, GENICODE.BADARGS, faultString, extra) -- 2.47.0