Skip to content
This repository was archived by the owner on Mar 11, 2022. It is now read-only.

Commit 5270f49

Browse files
authored
Update auto_fight.py
1 parent 10a3ae1 commit 5270f49

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

eSim/Fight/auto_fight.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import asyncio
22
from random import randint
3+
import traceback
34

45
import __init__ # For IDLE
56
from Basic.fly import fly
@@ -48,7 +49,8 @@ async def auto_fight(server, battle_id="", side="attacker", wep="0", food="", gi
4849
await random_sleep(restores_left)
4950

5051
except Exception as error:
51-
print("error:", error)
52+
print("------ERROR------\n")
53+
traceback.print_exc()
5254
await random_sleep(restores_left)
5355

5456

0 commit comments

Comments
 (0)