Skip to content

Commit

Permalink
Rename the dummy variable _ to avoid conflict with lazy_gettext
Browse files Browse the repository at this point in the history
Otherwise "local variable '_' referenced before assignment" will be raised
  • Loading branch information
x4base committed May 3, 2016
1 parent 88c9516 commit 6f3d559
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 @@ -1160,7 +1160,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 6f3d559

Please sign in to comment.