Browse Source

avoid error all together

pull/787/head
Christian Gill 4 years ago
parent
commit
890d7659e5
1 changed files with 1 additions and 1 deletions
  1. 2
      app/server/management/commands/create_admin.py

2
app/server/management/commands/create_admin.py

@ -22,7 +22,7 @@ class Command(createsuperuser.Command):
super().handle(*args, **options)
self.stderr.write(f'try executed')
except (IntegrityError, CommandError) as e:
self.stderr.write(f'User {username} already exists.')
pass
if password:
database = options.get('database')

Loading…
Cancel
Save