Backup stops with error "Error: local variable 'size' referenced before assignment"
Bug #813396 reported by
Charlie Pearce
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gibareto |
Fix Committed
|
High
|
Miguel Ángel Molina |
Bug Description
I am backing up a mid-sized gmail account (around 2.7GB). After a while it stops with the error:
Error: local variable 'size' referenced before assignment
This kept happening, meaning that I had to manually restart the process several times. Bit of pain as I plan to backup many large email accounts.
Changed in gibareto: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Miguel Ángel Molina (sslapp) |
To post a comment you must log in.
Hi Charlie!
I can't reproduce this error.
Could you make the change below into the gb_imap.py file and tell me if the error persists?
Open the gb_imap.py file with a text editor.
The lines 197-198 looks like: search( rest)
197 getsize = re_size.
198 if getsize:
Insert the line:
size = 0
between those lines, respect the identation:
getsize = re_size. search( rest)
size = 0
if getsize:
Save the file and perform a backup.
Thank you.