def get_throttling_limits(self, reply_handler=None, error_handler=None):
...
        logger.debug("called get_throttling_limits")
        try:
            aq = self.dbus_iface.action_queue
            download = -1
            upload = -1
            if aq.readLimit is not None:
                download = aq.readLimit
            if aq.writeLimit is not None:
                upload = aq.writeLimit

This is also bad, since if -1 is set, then -1 is returned to
preferences. Preferences do not allow negative values for
upload/download rate so they will default to closest possible number,
whch is zero, i.e. the same error.

I believe the defaults need to be taken from
/etc/xdg/ubuntuone/syncdaemon.conf but ATM syncdaemon does not have the
code to query system defaults.

-- 
ValueError: Read/write limit must be greater than 0 in ubuntuone-preferences 
with disabled throttling
https://bugs.launchpad.net/bugs/537610
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to