Skip to content

Commit

Permalink
Specify default code for the WebServiceError
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlecat committed Jul 14, 2017
1 parent e513eb7 commit 65701be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion critiquebrainz/ws/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class WebServiceError(Exception):
def __init__(self, code, desc=None, status=400, *args, **kwargs):
def __init__(self, code='', desc=None, status=400, *args, **kwargs):
super().__init__(*args, **kwargs)
self.code = code
self.desc = desc
Expand Down

0 comments on commit 65701be

Please sign in to comment.