Skip to content
This repository has been archived by the owner on Apr 14, 2019. It is now read-only.

Commit

Permalink
Add detailed assertion fail message
Browse files Browse the repository at this point in the history
tdooner committed Aug 14, 2016
1 parent bc82ddd commit b8f4241
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion netfile_raw/management/commands/downloadnetfilerawdata.py
Original file line number Diff line number Diff line change
@@ -212,7 +212,8 @@ def combine(self):
headers_written = headers
else:
# make sure things don't go all wierd between files.
assert headers == headers_written
assert headers == headers_written, \
'Headers in %s do not match the first written csv' % (csv_path,)

for line in agency_csv.readlines():
combined_csv.write(','.join([agency, line]))

0 comments on commit b8f4241

Please sign in to comment.