fix linter

This commit is contained in:
Simon 2023-10-28 10:30:21 +07:00
parent 8eaed07cff
commit ea9ed6c238
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 3 additions and 3 deletions

View File

@ -299,12 +299,12 @@ class Command(BaseCommand):
f" ✓ Settings for user '{user}' migrated to ES"
)
)
except Exception as e:
except Exception as err:
message = " 🗙 user migration to ES failed"
self.stdout.write(self.style.ERROR(message))
self.stdout.write(self.style.ERROR(e))
self.stdout.write(self.style.ERROR(err))
sleep(60)
raise CommandError(message)
raise CommandError(message) from err
else:
self.stdout.write(
self.style.SUCCESS(