Handle None reported as 'deflated_size'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu One Client |
Fix Released
|
High
|
Eric Casteleijn |
Bug Description
Tests on windows spew out a lot of these errors:
2011-06-24 19:17:27,976 - ubuntuone.
Traceback (most recent call last):
File "C:\Users\
method(
File "C:\Users\
self.
File "C:\Users\
self.
File "C:\Users\
self.
File "C:\Users\
sum(
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
- dobey (community): Approve
- Roberto Alsina (community): Approve
-
Diff: 224 lines (+61/-25)4 files modifiedtests/status/test_aggregator.py (+30/-9)
tests/syncdaemon/test_status_listener.py (+6/-4)
ubuntuone/status/aggregator.py (+21/-10)
ubuntuone/syncdaemon/status_listener.py (+4/-2)
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 |
Changed in ubuntuone-client: | |
milestone: | none → 1.7.1 |
Changed in ubuntuone-client: | |
status: | Fix Committed → Fix Released |