Skip to content

Commit

Permalink
格式化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
Anyk00 committed Sep 28, 2024
1 parent 3ae7f29 commit 173e9dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arknights_mower/utils/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def scene_graph_navigation(self, scene: int):
logger.error(f"{SceneComment[scene]}不在场景图中")
return

error_count=0
error_count = 0

while (current := self.scene()) != scene:
if current in self.waiting_scene:
Expand Down Expand Up @@ -469,7 +469,7 @@ def scene_graph_navigation(self, scene: int):
raise
except Exception as e:
logger.exception(f"场景转移异常:{e}")
'''restart_simulator()
"""restart_simulator()
self.device.client.check_server_alive()
Session().connect(config.conf.adb)
if config.conf.droidcast.enable:
Expand All @@ -478,7 +478,7 @@ def scene_graph_navigation(self, scene: int):
self.device.control.scrcpy = Scrcpy(self.device.client)
self.check_current_focus()
return False
return True'''
return True"""
if error_count <= 5:
self.sleep()
error_count += 1
Expand Down

0 comments on commit 173e9dd

Please sign in to comment.