summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmain.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.py b/main.py
index d2369ef..235337f 100755
--- a/main.py
+++ b/main.py
@@ -995,7 +995,8 @@ def main():
mapserv.sendall(str(PacketOut(CMSG_TRADE_OK)))
else:
mapserv.sendall(str(PacketOut(CMSG_TRADE_CANCEL_REQUEST)))
- mapserv.sendall(whisper(trader_state.item.player, "Trade Cancelled: Please check the traded items or money."))
+ if trader_state.item:
+ mapserv.sendall(whisper(trader_state.item.player, "Trade Cancelled: Please check the traded items or money."))
logging.info("Trade Ok: Partner.")