Skip to content

Commit

Permalink
ci: actually fail if Black finds format issues (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
ixje authored Aug 8, 2023
1 parent 417e730 commit 40b4615
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/validate-pr-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- uses: actions/checkout@v3
- uses: psf/black@stable
with:
options: '--target-version py310'
options: '--check --target-version py310'
version: '22.8.0'
src: "neo3/ examples/ tests/"
type-checking:
Expand Down
5 changes: 4 additions & 1 deletion neo3/api/noderpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,10 @@ async def wait_for_transaction_receipt(
try:
return await self.get_transaction_receipt(tx_hash)
except JsonRpcError as e:
if "Unknown transaction" in e.message or "Unknown script container" in e.message:
if (
"Unknown transaction" in e.message
or "Unknown script container" in e.message
):
await asyncio.sleep(retry_delay)
else:
raise e
Expand Down

0 comments on commit 40b4615

Please sign in to comment.