Skip to content

Commit

Permalink
chg: dev: fix variable typo
Browse files Browse the repository at this point in the history
  • Loading branch information
rachmadaniHaryono committed May 10, 2017
1 parent 7d57cb9 commit c8cca7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions export_saved.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,9 @@ def write_csv(csv_rows, file_name=None):
csvwriter.writerow(row)
else:
try:
csv.writer.writerow(row)
csvwriter.writerow(row)
except UnicodeEncodeError:
csv.writer.writerow(row.encode('utf8', 'ignore'))
csvwriter.writerow(row.encode('utf8', 'ignore'))
except TypeError:
with open(file_name, "w") as f:
csvwriter = csv.writer(f, delimiter=delimiter, quoting=csv.QUOTE_MINIMAL)
Expand Down

0 comments on commit c8cca7e

Please sign in to comment.