Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Sep 17, 2021
2 parents eeb246c + b42955b commit 79ee20f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion napari_plugin_engine/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,10 @@ def discover(
self._id_counts[old_name] += 1
except PluginError as e:
errs.append(e)
self.set_blocked(name)
# commenting out for now, because napari stores this blockage
# too permanently, and it's hard to differentiate between
# plugins intentionally blocked by the user.
# self.set_blocked(name)
if ignore_errors:
continue
raise e
Expand Down
4 changes: 2 additions & 2 deletions testing/test_discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def test_specification(arg1, arg2):
assert errs
assert isinstance(errs[0], PluginValidationError)
# and it should now be blocked
assert test_plugin_manager.is_blocked('app_invalid_plugin')
# assert test_plugin_manager.is_blocked('app_invalid_plugin')

# if we unblock the plugin and turn off ignore_errors
# we'll get a registration error at discovery
Expand Down Expand Up @@ -328,7 +328,7 @@ def test_specification(arg1, arg2):
assert errs
assert isinstance(errs[0], PluginValidationError)
# and it should now be blocked
assert test_plugin_manager.is_blocked('invalid')
# assert test_plugin_manager.is_blocked('invalid')

# if we unblock the plugin and turn off ignore_errors
# we'll get a registration error at discovery
Expand Down

0 comments on commit 79ee20f

Please sign in to comment.