Skip to content

Commit

Permalink
Fix: vdf import: importing lowercase key names. Ref #87
Browse files Browse the repository at this point in the history
  • Loading branch information
kozec committed Oct 11, 2016
1 parent d34a9f5 commit b5afab0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scc/foreign/vdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ def convert_key_name(name):
key = "KEY_%s" % (name,)
if hasattr(Keys, key):
return getattr(Keys, key)
if hasattr(Keys, key.upper()):
return getattr(Keys, key.upper())
raise ParseError("Unknown key: '%s'" % (name,))


Expand Down

0 comments on commit b5afab0

Please sign in to comment.