I've confirmed that commenting out the suspect lines, and then restarting the ubuntuone syncdaemon (or log-out then log-in since it auto-starts on log-in) provides a work-around for the issue/
I edited the /usr/share/pyshared/ubuntuone/syncdaemon/config.py file using a text editor to have:
# cleanup empty sections
#for section in [MAIN, THROTTLING]:
# if self.has_section(section) and not self.options(section):
# self.remove_section(section)
saved the file and restarted the syncdaemon.
Since then, running ubuntuone-preferences doesn't cause the syncdaemon.conf file to lose the __main__ section, and syncing works again in the background for my account files.
I've confirmed that commenting out the suspect lines, and then restarting the ubuntuone syncdaemon (or log-out then log-in since it auto-starts on log-in) provides a work-around for the issue/
I edited the /usr/share/ pyshared/ ubuntuone/ syncdaemon/ config. py file using a text editor to have:
# cleanup empty sections section( section) and not self.options( section) : section( section)
#for section in [MAIN, THROTTLING]:
# if self.has_
# self.remove_
saved the file and restarted the syncdaemon.
Since then, running ubuntuone- preferences doesn't cause the syncdaemon.conf file to lose the __main__ section, and syncing works again in the background for my account files.