Skip to content

Commit

Permalink
Rename the dummy variable _ to avoid conflict with lazy_gettext (#427)
Browse files Browse the repository at this point in the history
Otherwise "local variable '_' referenced before assignment" will be raised
  • Loading branch information
x4base authored and mistercrunch committed May 4, 2016
1 parent a3a9ec9 commit 1d0863a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion caravel/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1162,7 +1162,7 @@ def query( # druid
if df is not None and not df.empty:
dims = qry['dimensions']
filters = []
for _, row in df.iterrows():
for unused, row in df.iterrows():
fields = []
for dim in dims:
f = Filter.build_filter(Dimension(dim) == row[dim])
Expand Down

0 comments on commit 1d0863a

Please sign in to comment.