Skip to content

Commit b8dd358

Browse files
committed
Remove runtime changes
1 parent f83ccc6 commit b8dd358

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/rez/plugin_managers.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,9 +373,6 @@ def get_plugin_class(self, plugin_type: str, plugin_name: str, expected_type: ty
373373
"""Return the class registered under the given plugin name."""
374374
plugin = self._get_plugin_type(plugin_type)
375375
cls = plugin.get_plugin_class(plugin_name)
376-
if expected_type is not None and not isinstance(cls, type) and issubclass(cls, expected_type):
377-
raise RezPluginError("%s: Plugin class for %s was not the expected type: %s != %s"
378-
% (plugin.pretty_type_name, plugin_name, cls, expected_type))
379376
return cls
380377

381378
def get_plugin_module(self, plugin_type: str, plugin_name: str) -> types.ModuleType:

0 commit comments

Comments
 (0)