mirror of
https://github.com/kennethreitz-archive/python-convore.git
synced 2026-06-05 23:40:18 +00:00
better error syntax
This commit is contained in:
+3
-5
@@ -80,11 +80,9 @@ class GroupDiscoverCategory(SyncedList):
|
||||
|
||||
def get(self, key):
|
||||
|
||||
r = api.get('groups', 'discover', 'category', key,
|
||||
error='Invalid group slug given.'
|
||||
)
|
||||
|
||||
|
||||
error = 'Invalid group slug given.'
|
||||
|
||||
r = api.get('groups', 'discover', 'category', key, error=error)
|
||||
|
||||
groups = deserialize(r.content)['groups']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user