Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
HassanJaveed84 committed Feb 6, 2024
1 parent eb57a52 commit 3990483
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions edx/analytics/tasks/util/csv_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,7 @@ class MySQLExportDialect(MySQLPipeDialect):
def parse_line(line, dialect='excel'):
"""Parse one line of CSV in the dialect specified."""
# csv.reader requires an iterable per row, so we wrap the line in a list
try:
parsed = csv.reader([line], dialect=dialect).next()
except csv.Error:
log.error('Error parsing line: %s', line)
raise
parsed = csv.reader([line], dialect=dialect).next()

return parsed

Expand Down

0 comments on commit 3990483

Please sign in to comment.