Skip to content

Commit

Permalink
Fix local variable 'key' referenced before assignment
Browse files Browse the repository at this point in the history
Bug was introduced in cb744a6
  • Loading branch information
devcurmudgeon committed Aug 3, 2016
1 parent 588e7c7 commit 887d941
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ybd/morphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def _insert(self, new_def):
if dn['name'] != new_def['name']:
log(new_def, 'WARNING: %s also named as' % new_def['name'],
dn['name'], exit=exit)
dn[key] = new_def[key]
dn['name'] = new_def['name']

for key in new_def:
if dn.get(key) and new_def[key] and dn[key] != new_def[key]:
Expand Down

0 comments on commit 887d941

Please sign in to comment.