Follow DeepSource reccommendations

Nolonger binding to the address, by default it is always localhost
This commit is contained in:
Michał Gdula 2023-04-02 23:20:34 +00:00
parent 6f759bb678
commit 36a7f83db6
7 changed files with 15 additions and 22 deletions

View file

@ -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'