Comment 7 for bug 571616

Revision history for this message
Odd Stråbø (odd-strabo) wrote :

i got it working
i updated to latest version of ubuntuone-client via Update manager, and still it didnt work.
then i lookd a bit on the code, and made a litle change. works fine for me

Error message:
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/bin/ubuntuone-preferences", line 162, in do_rest_request
    callback(result)
  File "/usr/bin/ubuntuone-preferences", line 681, in got_quota_info
    self.update_quota_display(used, total)
  File "/usr/bin/ubuntuone-preferences", line 635, in update_quota_display
    'percent' : percent })
KeyError: 'brukt'

Patch:
--- /usr/bin/ubuntuone-preferences~ 2010-08-06 01:09:14.710720068 +0200
+++ /usr/bin/ubuntuone-preferences 2010-08-06 01:10:29.282723002 +0200
@@ -629,10 +629,7 @@
         percent = (float(used) / float(total)) * 100
         real_used, real_type = self._format_for_gb_display(used)
         self.usage_label.set_text(
- _("%(used)0.1f %(type)s Used (%(percent)0.1f%%)") % {
- 'used' : real_used,
- 'type' : real_type,
- 'percent' : percent })
+ _("%0.1f %s Used (%0.1f%%)") %(real_used, real_type, percent))
         self.usage_graph.set_fraction(percent / 100)

         # assumes all paid accounts will have more than 50GB