unboundlocal error

Dave Abrahams dave at boostpro.com
Sat Sep 24 05:20:44 BST 2011


I think this one is pretty trivial; probably the try block starts one
statement too early.

Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/offlineimap/threadutil.py", line 140, in run
    Thread.run(self)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 505, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/offlineimap/accounts.py", line 424, in syncfolder
    "[acc: '%s']" % (localfolder, accountname))
UnboundLocalError: local variable 'localfolder' referenced before assignment
-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com






More information about the OfflineIMAP-project mailing list