Address syntax issues and convert release_trade to async

This commit is contained in:
2022-06-04 13:42:25 +01:00
parent fe1ff870e2
commit 79caec1680
4 changed files with 14 additions and 9 deletions

View File

@@ -510,10 +510,10 @@ class IRCCommands(object):
msg("Trade or TX invalid")
return
elif is_released is True:
msg(f"Trade released")
msg("Trade released")
return
elif is_released is False:
msg(f"Could not release trade")
msg("Could not release trade")
return
class anuke(object):
@@ -878,7 +878,7 @@ class IRCCommands(object):
account_id = spl[2]
account_name = tx.sinks.truelayer.map_account(bank, account_id)
if not account_name:
msg(f"Failed to map the account")
msg("Failed to map the account")
return
msg(f"Mapped account ID {account_id} at bank {bank} to {account_name}")
@@ -890,7 +890,7 @@ class IRCCommands(object):
@staticmethod
def got_map_account(account_name, account_id, msg):
if not account_name:
msg(f"Failed to map the account")
msg("Failed to map the account")
return
msg(f"Mapped account ID {account_id} to {account_name}")