From d9fe27ad46e72b29d3f9ac4cd314d5ed880a7f2c Mon Sep 17 00:00:00 2001 From: Keiran Price Date: Thu, 30 May 2024 13:42:48 +0100 Subject: [PATCH] Reraise exception from --- .github/workflows/linting.yml | 2 +- src/experiments.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 292c438..201f951 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -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 \ No newline at end of file + run: mypy --strict src \ No newline at end of file diff --git a/src/experiments.py b/src/experiments.py index 483f216..43d990d 100644 --- a/src/experiments.py +++ b/src/experiments.py @@ -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