IMAP.py removed warning about explicitly re-raising

This patch removes this warning:

repository/IMAP.py:146:16: W0707: Consider explicitly re-raising using the 'from' keyword (raise-missing-from)
This commit is contained in:
Rodolfo García Peñas (kix) 2020-11-01 12:45:48 +01:00
parent f8a5b0b295
commit 2409fe8f49

View File

@ -147,7 +147,7 @@ class IMAPRepository(BaseRepository):
"remotehosteval option for repository " "remotehosteval option for repository "
"'%s' failed:\n%s" % (self, exc), "'%s' failed:\n%s" % (self, exc),
OfflineImapError.ERROR.REPO, OfflineImapError.ERROR.REPO,
exc_info()[2]) exc_info()[2]) from exc
if host: if host:
self._host = host self._host = host
return self._host return self._host