Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
Treat whitespace as empty string in EVL failures
Browse files Browse the repository at this point in the history
To fix test in previous commit.
  • Loading branch information
Paul M Furley committed Dec 18, 2013
1 parent b8cb626 commit 1fedbcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backdrop/contrib/evl_upload_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ def failure(service_type, reason, failures, description, timestamp):
return

reason_code = int(row[1])
tax_disc_failures = int(row[2] or 0)
sorn_failures = int(row[4] or 0)
tax_disc_failures = int(row[2].strip() or 0)
sorn_failures = int(row[4].strip() or 0)

yield failure("tax-disc", reason_code, tax_disc_failures, description,
timestamp)
Expand Down

0 comments on commit 1fedbcf

Please sign in to comment.