better error syntax

This commit is contained in:
Kenneth Reitz
2011-02-21 15:40:28 -05:00
parent 07844037ae
commit b82d422b10
+3 -5
View File
@@ -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']