mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 03:26:16 +00:00
Follow DeepSource reccommendations
Nolonger binding to the address, by default it is always localhost
This commit is contained in:
parent
6f759bb678
commit
36a7f83db6
7 changed files with 15 additions and 22 deletions
|
@ -104,9 +104,6 @@ def register():
|
|||
db_session.commit()
|
||||
except exc.IntegrityError:
|
||||
return f'User {username} is already registered!'
|
||||
except Exception as err:
|
||||
logging.error('User %s could not be registered: %s', username, err)
|
||||
return 'Something went wrong!'
|
||||
|
||||
logging.info('User %s registered', username)
|
||||
return 'gwa gwa'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue