Skip to content
Snippets Groups Projects
Commit 33987705 authored by Iustin Pop's avatar Iustin Pop
Browse files

jqueue: fix a bug in an error path

Dictionaries raise KeyError, and not ValueError when invalid keys are
passes to del.

Reviewed-by: imsnah
parent cff4c037
No related branches found
No related tags found
No related merge requests found
...@@ -499,7 +499,7 @@ class JobQueue(object): ...@@ -499,7 +499,7 @@ class JobQueue(object):
# Remove master node # Remove master node
try: try:
del self._nodes[self._my_hostname] del self._nodes[self._my_hostname]
except ValueError: except KeyError:
pass pass
# TODO: Check consistency across nodes # TODO: Check consistency across nodes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment