diff --git a/src/argh/dispatching.py b/src/argh/dispatching.py index 8985efb..c1d8bb1 100644 --- a/src/argh/dispatching.py +++ b/src/argh/dispatching.py @@ -325,7 +325,6 @@ def default_exception_processor(exc: Exception) -> str: for line in result: yield line except tuple(wrappable_exceptions) as exc: - processor = getattr( function, ATTR_WRAPPED_EXCEPTIONS_PROCESSOR, default_exception_processor ) diff --git a/tests/test_dispatching.py b/tests/test_dispatching.py index 0c03549..a629cc2 100644 --- a/tests/test_dispatching.py +++ b/tests/test_dispatching.py @@ -72,7 +72,6 @@ def func(): @patch("argh.dispatching.add_commands") @patch("argparse.ArgumentParser") def test_entrypoint(ap_cls_mock, add_commands_mock, dispatch_mock): - entrypoint = argh.EntryPoint("my cool app") # no commands