Showing db error on Profile table

This commit is contained in:
Samuel Clay 2022-02-16 15:40:51 -05:00
parent 8cc4956f73
commit 0074cf2b53

View file

@ -89,8 +89,8 @@ class Profile(models.Model):
self.secret_token = generate_secret_token(self.user.username, 12)
try:
super(Profile, self).save(*args, **kwargs)
except DatabaseError:
print(" ---> Profile not saved. Table isn't there yet.")
except DatabaseError as e:
print(f" ---> Profile not saved: {e}")
def delete_user(self, confirm=False, fast=False):
if not confirm: