aboutsummaryrefslogtreecommitdiff
path: root/webmentions_ssg
diff options
context:
space:
mode:
Diffstat (limited to 'webmentions_ssg')
-rw-r--r--webmentions_ssg/cli.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/webmentions_ssg/cli.py b/webmentions_ssg/cli.py
index b0459d4..7a68651 100644
--- a/webmentions_ssg/cli.py
+++ b/webmentions_ssg/cli.py
@@ -47,9 +47,6 @@ def create_user(username: str, password: str) -> None:
except ValueError as exc:
raise click.ClickException(str(exc)) from exc
- if db.session.scalar(sa.select(User).where(User.username == username)):
- raise click.ClickException(f"User {username!r} already exists.")
-
db.session.add(User(username=username, password=password))
try:
db.session.commit()