Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove not used variables to fix #102 #103

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion arthur/arthur.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def remove_task(self, task_id):
"""
try:
self._scheduler.cancel_task(task_id)
except NotFoundError as e:
except NotFoundError:
logger.info("Cannot cancel %s task because it does not exist.",
task_id)
return False
Expand Down
4 changes: 2 additions & 2 deletions tests/test_arthur.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def test_task_wrong_delay(self):

app = Arthur(self.conn, async_mode=False)

with self.assertRaisesRegex(ValueError, INVALID_SCHEDULER_DELAY) as ex:
with self.assertRaisesRegex(ValueError, INVALID_SCHEDULER_DELAY):
app.add_task(task_id, backend, category, backend_params, sched_args=sched_params)

def test_task_wrong_max_retries(self):
Expand All @@ -302,7 +302,7 @@ def test_task_wrong_max_retries(self):

app = Arthur(self.conn, async_mode=False)

with self.assertRaisesRegex(ValueError, INVALID_SCHEDULER_MAX_RETRIES) as ex:
with self.assertRaisesRegex(ValueError, INVALID_SCHEDULER_MAX_RETRIES):
app.add_task(task_id, backend, category, backend_params, sched_args=sched_params)

def test_add_duplicated_task(self):
Expand Down