From b13564726fd7a17485e088bd01fa28956c44f9c2 Mon Sep 17 00:00:00 2001 From: jnovikov Date: Sat, 2 Dec 2023 00:38:48 +0000 Subject: [PATCH] Fix the status returned if the flag was already stolen. --- backend/lib/storage/attacks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/lib/storage/attacks.py b/backend/lib/storage/attacks.py index 01a08cbe..cc68d2cf 100644 --- a/backend/lib/storage/attacks.py +++ b/backend/lib/storage/attacks.py @@ -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