Skip to content

Commit

Permalink
Fix pep8 error
Browse files Browse the repository at this point in the history
  • Loading branch information
ckirby committed Oct 10, 2016
1 parent 7d4ff9e commit 03970f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion postgres_copy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ def __init__(
raise ValueError("Map does not include %s field" % h)
try:
if f_name not in [ih.lower() for ih in self.ignore_headers]:
f = [f for f in self.model._meta.fields if f.name == f_name][0]
f = [f for f in self.model._meta.fields
if f.name == f_name][0]
except IndexError:
raise ValueError("Model does not include %s field" % f_name)
self.field_header_crosswalk.append((f, h))
Expand Down

0 comments on commit 03970f3

Please sign in to comment.