Skip to content

Commit

Permalink
plugins: replace PluginError with RuntimeError
Browse files Browse the repository at this point in the history
Co-authored-by: dgw <dgw@technobabbl.es>
  • Loading branch information
SnoopJ and dgw committed Jun 13, 2023
1 parent acb671c commit 0652bca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sopel/plugins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def find_internal_plugins():
"""
modules = importlib.util.find_spec('sopel.modules')
if modules is None or modules.submodule_search_locations is None:
raise exceptions.PluginError('Cannot resolve internal plugins')
raise RuntimeError('Cannot resolve internal plugins')
plugin_list = itertools.chain.from_iterable(
_list_plugin_filenames(path)
for path in modules.submodule_search_locations
Expand Down
2 changes: 1 addition & 1 deletion sopel/plugins/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def __init__(self, name, package=None):
@property
def module(self) -> ModuleType:
if self._module is None:
raise exceptions.PluginError('No module for plugin %s' % self.name)
raise RuntimeError('No module for plugin %s' % self.name)
return self._module

def get_label(self):
Expand Down

0 comments on commit 0652bca

Please sign in to comment.