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

Commit

Permalink
Merge pull request #224 from jvehent/master
Browse files Browse the repository at this point in the history
fix mig api error location in mig2mozdef.py
  • Loading branch information
jeffbryner committed Jan 26, 2015
2 parents 232af1a + 7672790 commit 4c9cf47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cron/mig2mozdef.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ def main():
migjson=r.json()
raise Exception("API returned HTTP code %s and error '%s:%s'" %
(r.status_code,
migjson['collection']['code'],
migjson['collection']['message'])
migjson['collection']['error']['code'],
migjson['collection']['error']['message'])
)
else:
# another type of failure that's unlikely to have an error body
Expand Down

0 comments on commit 4c9cf47

Please sign in to comment.