Fixed exception if no trade object is available
This commit is contained in:
parent
58736954d1
commit
06468bb224
@ -35,8 +35,9 @@ def send_to_format(type: str, message: data.Message, conf: dict()) -> None:
|
||||
channel=message.channel.name,
|
||||
user=message.user,
|
||||
guild=message.guild,
|
||||
to_from=message.to_from,
|
||||
item=message.trade.item,
|
||||
to_from=message.to_from)
|
||||
if message.trade:
|
||||
text = text.format(item=message.trade.item,
|
||||
amount=message.trade.amount,
|
||||
currency=message.trade.currency,
|
||||
tab=message.trade.tab,
|
||||
|
Loading…
x
Reference in New Issue
Block a user