check if none
This commit is contained in:
parent
3bce131f19
commit
07d4e85495
1 changed files with 4 additions and 3 deletions
|
@ -65,6 +65,7 @@ class BackupImap:
|
||||||
list_response, list_data = self.imap.list(f"\"{mailbox}\"", '*')
|
list_response, list_data = self.imap.list(f"\"{mailbox}\"", '*')
|
||||||
if list_response == 'OK':
|
if list_response == 'OK':
|
||||||
for subdir in list_data:
|
for subdir in list_data:
|
||||||
|
if subdir:
|
||||||
sub_mailbox = self._parse_mailbox(subdir)
|
sub_mailbox = self._parse_mailbox(subdir)
|
||||||
if sub_mailbox != mailbox:
|
if sub_mailbox != mailbox:
|
||||||
self._process_mailbox(self._parse_mailbox(subdir))
|
self._process_mailbox(self._parse_mailbox(subdir))
|
||||||
|
|
Loading…
Reference in a new issue