fix return model for fastapi (#291)

This commit is contained in:
callebtc
2023-07-26 10:50:58 +02:00
committed by GitHub
parent 3d676dd35f
commit 4c1ff8b353
3 changed files with 3 additions and 3 deletions

View File

@@ -220,7 +220,7 @@ async def invoice(ctx: Context, amount: int, hash: str, split: int):
print(" Invoice paid.")
except Exception as e:
# TODO: user error codes!
if "invoice not paid" in str(e):
if "not paid" in str(e):
print(".", end="", flush=True)
continue
else: