Skip to content

Commit

Permalink
Fix pyflakes error
Browse files Browse the repository at this point in the history
  • Loading branch information
ckirby committed Oct 25, 2016
1 parent e49a49b commit 35729bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion postgres_copy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def __init__(
if v not in inverse_mapping.keys():
raise ValueError("Overloaded %s field is not in mapping" % k)
try:
f = [f for f in self.model._meta.fields if f.name == k][0]
o = [o for o in self.model._meta.fields if o.name == k][0]
except IndexError:
raise ValueError("Model does not include overload %s field"
% v)
Expand Down

0 comments on commit 35729bf

Please sign in to comment.