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
......@@ -499,7 +499,7 @@ class JobQueue(object):
# Remove master node
del self._nodes[self._my_hostname]
except ValueError:
except KeyError:
# TODO: Check consistency across nodes
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment