From ea9ed6c238d84d92adaaf5a2031a15b4881eba4e Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 28 Oct 2023 10:30:21 +0700 Subject: [PATCH] fix linter --- tubearchivist/config/management/commands/ta_startup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tubearchivist/config/management/commands/ta_startup.py b/tubearchivist/config/management/commands/ta_startup.py index 347e438..e10cd1a 100644 --- a/tubearchivist/config/management/commands/ta_startup.py +++ b/tubearchivist/config/management/commands/ta_startup.py @@ -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(