Commit e047c5c3 authored by Hamza Dely's avatar Hamza Dely
Browse files

KeyTable : don't crash if the key algorithm is unknown

parent 7b3a2a78
......@@ -586,7 +586,7 @@ class Key(object):
elif line.startswith("Algorithm:"):
algorithm = int(line[11:13].strip())
self.algorithm = SUPPORTED_ALGORITHMS[algorithm]
self.algorithm = SUPPORTED_ALGORITHMS.get(algorithm, "Unknown (%d)" % algorithm)
if self.created is None:
raise ValueError("The key %s must have as list its Created field defined" % path)
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