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())