Skip to content

Commit

Permalink
Update worlds/smw/Client.py to use getattr
Browse files Browse the repository at this point in the history
Co-authored-by: Fabian Dill <Berserker66@users.noreply.github.com>
  • Loading branch information
PoryGone and Berserker66 authored Jan 30, 2023
1 parent 7c8e34b commit f33d98b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions worlds/smw/Client.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,7 @@ async def handle_message_queue(self, ctx):


def add_trap_to_queue(self, trap_item, trap_msg):
if not hasattr(self, "trap_queue"):
self.trap_queue = []
self.trap_queue = getattr(self, "trap_queue", [])

self.trap_queue.append((trap_item, trap_msg))

Expand Down

0 comments on commit f33d98b

Please sign in to comment.