Skip to content

Commit fe8d249

Browse files
committed
Problem retrieving elections from Vote USA -- adding debugging code. (Iteration)
1 parent 4f18c6f commit fe8d249

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

election/controllers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ def election_remote_retrieve(use_vote_usa=True):
2727
error = structured_json.get('error', {})
2828
errors = error.get('errors', {})
2929
if not retrieve_results['success'] or len(errors): # Success refers to http success, not an error free response
30-
logger.error("Loading Election from Vote USA failed: " + json.dumps(errors) +
31-
", structured_json:" + structured_json +
32-
", retrieve_results['status']:" + retrieve_results['status'])
30+
logger.error("Loading Election from Vote USA failed: " + str(json.dumps(errors)) +
31+
", structured_json:" + str(structured_json) +
32+
", retrieve_results['status']:" + str(retrieve_results['status']))
3333
results = {
3434
'success': False,
3535
'status': retrieve_results['status']

0 commit comments

Comments
 (0)