From 1d93f90db516eb4c739e6efba661bcd7356b96d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Sun, 1 Nov 2020 09:55:25 +0100 Subject: [PATCH] Base.py renamed exception variable e to exc This variable is renamed twice to avoid this warning: C0103: Attribute name "e" doesn't conform to snake_case naming style (invalid-name) --- offlineimap/repository/Base.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/offlineimap/repository/Base.py b/offlineimap/repository/Base.py index 459fa1b..1418d83 100644 --- a/offlineimap/repository/Base.py +++ b/offlineimap/repository/Base.py @@ -284,8 +284,8 @@ class BaseRepository(CustomConfig.ConfigHelperMixin): local_repo.makefolder(local_name) # Need to refresh list. local_repo.forgetfolders() - except OfflineImapError as e: - self.ui.error(e, exc_info()[2], + except OfflineImapError as exc: + self.ui.error(exc, exc_info()[2], "Creating folder %s on repository %s" % (local_name, local_repo)) raise @@ -349,10 +349,10 @@ class BaseRepository(CustomConfig.ConfigHelperMixin): remote_repo.makefolder(remote_name) # Need to refresh list. self.forgetfolders() - except OfflineImapError as e: + except OfflineImapError as exc: msg = "Creating folder %s on repository %s" % \ (remote_name, remote_repo) - self.ui.error(e, exc_info()[2], msg) + self.ui.error(exc, exc_info()[2], msg) raise status_repo.makefolder(local_name.replace( local_repo.getsep(), status_repo.getsep()))