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)
This commit is contained in:
parent
e25bd7b48b
commit
1d93f90db5
@ -284,8 +284,8 @@ class BaseRepository(CustomConfig.ConfigHelperMixin):
|
|||||||
local_repo.makefolder(local_name)
|
local_repo.makefolder(local_name)
|
||||||
# Need to refresh list.
|
# Need to refresh list.
|
||||||
local_repo.forgetfolders()
|
local_repo.forgetfolders()
|
||||||
except OfflineImapError as e:
|
except OfflineImapError as exc:
|
||||||
self.ui.error(e, exc_info()[2],
|
self.ui.error(exc, exc_info()[2],
|
||||||
"Creating folder %s on repository %s" %
|
"Creating folder %s on repository %s" %
|
||||||
(local_name, local_repo))
|
(local_name, local_repo))
|
||||||
raise
|
raise
|
||||||
@ -349,10 +349,10 @@ class BaseRepository(CustomConfig.ConfigHelperMixin):
|
|||||||
remote_repo.makefolder(remote_name)
|
remote_repo.makefolder(remote_name)
|
||||||
# Need to refresh list.
|
# Need to refresh list.
|
||||||
self.forgetfolders()
|
self.forgetfolders()
|
||||||
except OfflineImapError as e:
|
except OfflineImapError as exc:
|
||||||
msg = "Creating folder %s on repository %s" % \
|
msg = "Creating folder %s on repository %s" % \
|
||||||
(remote_name, remote_repo)
|
(remote_name, remote_repo)
|
||||||
self.ui.error(e, exc_info()[2], msg)
|
self.ui.error(exc, exc_info()[2], msg)
|
||||||
raise
|
raise
|
||||||
status_repo.makefolder(local_name.replace(
|
status_repo.makefolder(local_name.replace(
|
||||||
local_repo.getsep(), status_repo.getsep()))
|
local_repo.getsep(), status_repo.getsep()))
|
||||||
|
Loading…
Reference in New Issue
Block a user