~rodrigo-moya/ubuntuone-client/fix-657850

« back to all changes in this revision

Viewing changes to bin/ubuntuone-preferences

  • Committer: Rodrigo Moya
  • Date: 2010-10-13 09:46:59 UTC
  • Revision ID: rodrigo.moya@canonical.com-20101013094659-xvz2z1j5vgwpgsu5
Catch exceptions from desktopcouch code

Show diffs side-by-side

added added

removed removed

Lines of Context:
705
705
        if dcouch:
706
706
            Thread(target=self.__check_for_bindwood).start()
707
707
 
708
 
            self.dcouch = dcouch.ReplicationExclusion()
709
 
            exclusions = self.dcouch.all_exclusions()
710
 
            for check in [self.bookmarks_check,
711
 
                          self.abook_check,
712
 
                          self.gwib_check]:
713
 
                if check.get_data('dbname') in exclusions:
714
 
                    check.set_active(False)
715
 
                else:
716
 
                    check.set_active(True)
 
708
            try:
 
709
                self.dcouch = dcouch.ReplicationExclusion()
 
710
                exclusions = self.dcouch.all_exclusions()
 
711
                for check in [self.bookmarks_check,
 
712
                              self.abook_check,
 
713
                              self.gwib_check]:
 
714
                    if check.get_data('dbname') in exclusions:
 
715
                        check.set_active(False)
 
716
                    else:
 
717
                        check.set_active(True)
 
718
            except Exception, e:
 
719
                logger.error(e)
717
720
        else:
718
721
            self.bookmarks_check.set_sensitive(False)
719
722
            self.abook_check.set_sensitive(False)