We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
DataikuException
Exception
1 parent 5e2f403 commit 2610e21Copy full SHA for 2610e21
dataikuapi/dss/plugin.py
@@ -1,3 +1,6 @@
1
+from dataikuapi.utils import DataikuException
2
+
3
4
class DSSPluginSettings(object):
5
"""
6
The settings of a plugin.
@@ -142,7 +145,7 @@ def delete(self, force=False):
142
145
ret = self.client._perform_json("POST", "/plugins/{pluginId}/actions/delete".format(pluginId=self.plugin_id),
143
146
body=params)
144
147
if "projectCount" in ret:
- raise Exception("Plugin has usages or analysis errors.")
148
+ raise DataikuException("Plugin has usages or analysis errors.")
149
return self.client.get_future(ret.get("jobId", None))
150
151
########################################################
0 commit comments