1. Luke Plant
  2. signupto

Commits

Luke Plant  committed 39c00a5

Corrected error handling

  • Participants
  • Parent commits c1edd4d
  • Branches default

Comments (0)

Files changed (1)

File signupto/client.py

View file
         try:
             response = self.api.make_request('DELETE', path, params)
         except drest.exc.dRestRequestError as e:
-            msg = "%s (resource: %s, id: %s)" % (e.msg, self.name,
-                                                 resource_id)
+            msg = "%s (resource: %s)" % (e.msg, self.name)
             raise drest.exc.dRestRequestError(msg, e.response)
 
         return response
         try:
             response = self.api.make_request('PUT', path, params)
         except drest.exc.dRestRequestError as e:
-            msg = "%s (resource: %s, id: %s)" % (e.msg, self.name,
-                                                 resource_id)
+            msg = "%s (resource: %s)" % (e.msg, self.name)
             raise drest.exc.dRestRequestError(msg, e.response)
 
         return response