diff --git a/src/howitz/users/db.py b/src/howitz/users/db.py index 6b02a232..16e611f3 100644 --- a/src/howitz/users/db.py +++ b/src/howitz/users/db.py @@ -4,7 +4,7 @@ class UserDB: - class Exception(Exception): + class DBException(Exception): pass def __init__(self, database_file: str): @@ -54,7 +54,7 @@ def get(self, username, connection=None): if not result: return None if len(result) > 1: - raise Exception("More than one with that username, b0rked database") + raise self.DBException("More than one with that username, b0rked database") return result[0] def add(self, user: User):