mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-20 10:34:20 +01:00
fix return model for fastapi (#291)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user