Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alirezade authored and alirezade committed Dec 27, 2023
1 parent 65bb23d commit f34b212
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/AttackerRemote.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,10 @@ def process_messages(self, msg):

@staticmethod
def find_tag_in_msg(msg, tag):
tag = tag.lower()
if not msg.keys().__contains__(tag):
raise Exception('Cannot find tag name:({tag}) in message!')
return msg[tag]
raise Exception(f'Cannot find tag name: ({tag}) in message!')
return msg[tag].lower()


if __name__ == '__main__':
Expand Down

0 comments on commit f34b212

Please sign in to comment.