diff --git a/rq/worker.py b/rq/worker.py index 8176b27..892f871 100644 --- a/rq/worker.py +++ b/rq/worker.py @@ -158,9 +158,9 @@ class Worker(object): if exc_handler is not None: self.push_exc_handler(exc_handler) warnings.warn( - "use of exc_handler is deprecated, pass a list to exception_handlers instead.", - DeprecationWarning - ) + "use of exc_handler is deprecated, pass a list to exception_handlers instead.", + DeprecationWarning + ) elif isinstance(exception_handlers, list): for h in exception_handlers: self.push_exc_handler(h) diff --git a/tests/test_cli.py b/tests/test_cli.py index 1a812ae..7c806b9 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -120,4 +120,3 @@ class TestRQCli(RQTestCase): self.assertEqual(result.exit_code, 1) self.assertIn("Duration must be an integer greater than 1", result.output) -