Skip to content

Commit 7c0f366

Browse files
committed
Raising a real exception.
1 parent 6f278d1 commit 7c0f366

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

intercom/api_operations/load.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ def load(cls, **params):
1010
if 'id' in params:
1111
response = Intercom.get("/%s/%s" % (collection, params['id']))
1212
else:
13-
raise "Cannot load #{class} as it does not have a valid id."
13+
raise Exception(
14+
"Cannot load %s as it does not have a valid id." % (cls))
1415
return cls(**response)

0 commit comments

Comments
 (0)