Skip to content

Commit 1060b87

Browse files
Fix how DJError raised on uninstalled plugin.
1 parent 8a43178 commit 1060b87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datajoint/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def get_host_hook(host_input):
2323
try:
2424
return connection_plugins[plugin_name]['object'].load().get_host(host_input)
2525
except KeyError:
26-
raise DataJointError(
26+
raise errors.DataJointError(
2727
"Connection plugin '{}' not found.".format(plugin_name))
2828
else:
2929
return host_input
@@ -35,7 +35,7 @@ def connect_host_hook(connection_obj):
3535
try:
3636
connection_plugins[plugin_name]['object'].load().connect_host(connection_obj)
3737
except KeyError:
38-
raise DataJointError(
38+
raise errors.DataJointError(
3939
"Connection plugin '{}' not found.".format(plugin_name))
4040
else:
4141
connection_obj.connect()

0 commit comments

Comments
 (0)