Skip to content

Commit 2610e21

Browse files
committed
Using DataikuException rather than Exception.
1 parent 5e2f403 commit 2610e21

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dataikuapi/dss/plugin.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
from dataikuapi.utils import DataikuException
2+
3+
14
class DSSPluginSettings(object):
25
"""
36
The settings of a plugin.
@@ -142,7 +145,7 @@ def delete(self, force=False):
142145
ret = self.client._perform_json("POST", "/plugins/{pluginId}/actions/delete".format(pluginId=self.plugin_id),
143146
body=params)
144147
if "projectCount" in ret:
145-
raise Exception("Plugin has usages or analysis errors.")
148+
raise DataikuException("Plugin has usages or analysis errors.")
146149
return self.client.get_future(ret.get("jobId", None))
147150

148151
########################################################

0 commit comments

Comments
 (0)