From fbfc7e490e2e74e9775be8f74045e335d74cdf6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Bult=C3=A9?= Date: Mon, 16 Sep 2024 10:06:45 +0200 Subject: [PATCH] review: break from both loops --- ecospheres_migrator/geonetwork.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ecospheres_migrator/geonetwork.py b/ecospheres_migrator/geonetwork.py index b70d054..1b3d672 100644 --- a/ecospheres_migrator/geonetwork.py +++ b/ecospheres_migrator/geonetwork.py @@ -184,6 +184,8 @@ def _extract_uuid_from_put_response(self, payload: dict): if uuid_match: uuid_match = uuid_match.group(1) break + if uuid_match: + break return uuid_match