Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
more code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Paris Goldman-Smith committed Sep 6, 2018
1 parent 480a92c commit 417000b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aimmo-game-worker/avatar_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def process_avatar_turn(self, world_map, avatar_state, src_code):
action = WaitAction().serialise()

except Exception as e:
user_traceback = self.get_only_user_traceback(e)
user_traceback = self.get_only_user_traceback()
for trace in user_traceback:
print(trace)

Expand All @@ -74,7 +74,7 @@ def decide_action(self, world_map, avatar_state):
return action.serialise()

@staticmethod
def get_only_user_traceback(e):
def get_only_user_traceback():
""" If the traceback does not contain any reference to the user code, found by '<string>',
then this method will just return the full traceback. """
traceback_list = traceback.format_exc().split('\n')
Expand Down

0 comments on commit 417000b

Please sign in to comment.