Skip to content

Commit

Permalink
Indicate missing field
Browse files Browse the repository at this point in the history
  • Loading branch information
ntrrgc committed Apr 13, 2015
1 parent 8c11b3f commit babe742
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snorky/services/datasync/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ def authorizeSubscription(self, req, items):

obj_item = SubscriptionItem(dealer_name, item["query"])
obj_items.append(obj_item)
except KeyError:
raise RPCError("Missing field")
except KeyError as field:
raise RPCError("Missing field %s" % field)

subscription = Subscription(obj_items, self.frontend)
token = self.frontend.sm.register_subscription(subscription)
Expand Down

0 comments on commit babe742

Please sign in to comment.