From 243b6425c36a75430ef93b0f2964a6c4ffa0d2d6 Mon Sep 17 00:00:00 2001 From: Fiona Weber Date: Fri, 20 Oct 2023 12:49:14 +0000 Subject: [PATCH] Improve error message when customer has no allowed prefixes --- wanda/as_filter/as_filter.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wanda/as_filter/as_filter.py b/wanda/as_filter/as_filter.py index 09a9f68..62d052f 100644 --- a/wanda/as_filter/as_filter.py +++ b/wanda/as_filter/as_filter.py @@ -30,9 +30,8 @@ def prefix_lists(self): v6_set.update(result_entries_v6_cleaned) if len(v4_set) == 0 and len(v6_set) == 0 and self.is_customer: - l.error(f"{self.autos} has no v4 filter lists.") raise Exception( - f"{self.autos} has no v6 filter lists. Since AS is our customer, we forbid this for security reasons.") + f"{self.autos} has neither IPv4, nor IPv6 filter lists. Since AS is our customer, we forbid this for security reasons.") return v4_set, v6_set