Handle None reported as 'deflated_size'

Bug #801736 reported by Eric Casteleijn
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Eric Casteleijn

Bug Description

Tests on windows spew out a lot of these errors:

2011-06-24 19:17:27,976 - ubuntuone.SyncDaemon.EQ - ERROR - Error encountered while handling: SYS_QUEUE_ADDED in <ubuntuone.syncdaemon.status_listener.StatusListener object at 0x02E93970>
Traceback (most recent call last):
  File "C:\Users\Test\src\ubuntuone-client\ubuntuone\syncdaemon\event_queue.py", line 291, in _dispatch
  File "C:\Users\Test\src\ubuntuone-client\ubuntuone\syncdaemon\status_listener.py", line 91, in handle_SYS_QUEUE_ADDED
  File "C:\Users\Test\src\ubuntuone-client\ubuntuone\status\aggregator.py", line 809, in download_started
  File "C:\Users\Test\src\ubuntuone-client\ubuntuone\status\aggregator.py", line 727, in download_started
  File "C:\Users\Test\src\ubuntuone-client\ubuntuone\status\aggregator.py", line 712, in update_progressbar
    sum(self.progress.values())) / sum(self.to_do.values())
TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'

This is because something reports a None value for either 'deflated_size' or 'n_bytes_written'.

Related branches

summary: - Error when running tests on windows: TypeError: unsupported operand
- type(s) for +: 'int' and 'NoneType'
+ None reported as 'deflated_size' or 'n_bytes_written'
description: updated
Changed in ubuntuone-client:
importance: Low → High
summary: - None reported as 'deflated_size' or 'n_bytes_written'
+ Handle None reported as 'deflated_size'
Changed in ubuntuone-client:
status: In Progress → Fix Committed
dobey (dobey)
Changed in ubuntuone-client:
milestone: none → 1.7.1
dobey (dobey)
Changed in ubuntuone-client:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers