Skip to content

Commit

Permalink
Reraise exception from
Browse files Browse the repository at this point in the history
  • Loading branch information
keiranjprice101 committed May 30, 2024
1 parent 1dd84f8 commit d9fe27a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ jobs:
python -m pip install --upgrade pip
python -m pip install .[code-inspection]
- name: Run MyPy
run: mypy --strict app.py src
run: mypy --strict src
2 changes: 1 addition & 1 deletion src/experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ async def get_experiments_for_user_number(user_number: int) -> List[int]:
return [int(proposal["referenceNumber"]) for proposal in response["proposals"]]
except TransportError as e:
logger.exception("Failed to query allocations API", exc_info=e)
raise ProposalAllocationsError()
raise ProposalAllocationsError() from e

0 comments on commit d9fe27a

Please sign in to comment.