Commit 40f357f8 authored by Rob Carleski's avatar Rob Carleski 🇮🇸
Browse files

Raise ValueError instead of generic exception

parent 0d6ffbdd
......@@ -215,7 +215,7 @@ class Client:
if 'umichgroup' in r.json()['group'][0]['objectClass']:
self.group_data = r.json()['group'][0]
else:
raise Exception('{} is not a group. Got [{}]'.format(
raise ValueError('{} is not a group. Got [{}]'.format(
name,
', '.join(r.json()['group'][0]['objectClass'])
))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment