From be159dc77de57caf4cd2fe6bdbae244f7fc7574f Mon Sep 17 00:00:00 2001 From: offa <8887756+offa@users.noreply.github.com> Date: Fri, 27 Mar 2026 12:53:52 +0100 Subject: [PATCH] Use python exception type (#615) --- ensure_sorted.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ensure_sorted.py b/ensure_sorted.py index 4109085..700c321 100755 --- a/ensure_sorted.py +++ b/ensure_sorted.py @@ -21,7 +21,7 @@ class Category: def add_app(self, app_str: str): matches = re.findall("(?<=\\[\\*\\*).*(?=\\*\\*\\])", app_str) if len(matches) != 1: - raise "These should be only one match" + raise RuntimeError("These should be only one match") app_name = matches[0] # make it lower case and append it self.apps.append(app_name.lower())