Skip to content

Commit

Permalink
Merge pull request #80 from jnovikov/dev/status
Browse files Browse the repository at this point in the history
Fix the status returned if the flag was already stolen.
  • Loading branch information
pomo-mondreganto authored Dec 6, 2023
2 parents a3d5fc6 + b135647 commit 6ce3407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/lib/storage/attacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def handle_attack(
current_round=current_round,
)
if not success:
raise FlagExceptionEnum.FLAG_YOUR_OWN
raise FlagExceptionEnum.FLAG_ALREADY_STOLEN

except exceptions.FlagSubmitException as e:
result.submit_ok = False
Expand Down

0 comments on commit 6ce3407

Please sign in to comment.