We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f278d1 commit 7c0f366Copy full SHA for 7c0f366
intercom/api_operations/load.py
@@ -10,5 +10,6 @@ def load(cls, **params):
10
if 'id' in params:
11
response = Intercom.get("/%s/%s" % (collection, params['id']))
12
else:
13
- raise "Cannot load #{class} as it does not have a valid id."
+ raise Exception(
14
+ "Cannot load %s as it does not have a valid id." % (cls))
15
return cls(**response)
0 commit comments