Skip to content

Commit

Permalink
Merge pull request #140 from mcneilco/ACAS-701
Browse files Browse the repository at this point in the history
ACAS-701: Add 404 status check for ACAS response for non-existant lot
  • Loading branch information
brianbolt authored Sep 19, 2023
2 parents bfbf6fa + 14d8825 commit 23de77e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acasclient/acasclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ def get_meta_lot(self, lot_corp_name):
"""
resp = self.session.get("{}/cmpdreg/metalots/corpName/{}/"
.format(self.url, lot_corp_name))
if resp.status_code == 500:
if resp.status_code == 500 or resp.status_code == 404:
return None
resp.raise_for_status()
return resp.json()
Expand Down

0 comments on commit 23de77e

Please sign in to comment.