I assume the issue here is that sometimes the value for "Space" is None, a workaround might be:
=== modified file 'aptdaemon/client.py' --- aptdaemon/client.py 2012-05-08 22:44:15 +0000 +++ aptdaemon/client.py 2012-06-05 07:05:13 +0000 @@ -638,7 +638,7 @@ self.download = value self.emit("download-changed", value) elif property_name == "Space": - self.space = value + self.space = value or 0 self.emit("space-changed", value) elif property_name == "HttpProxy": self.http_proxy = value
But I don't see in the code how this could happen that trans.space is None.
I assume the issue here is that sometimes the value for "Space" is None, a workaround might be:
=== modified file 'aptdaemon/ client. py'
self. download = value
self. emit("download- changed" , value)
self. emit("space- changed" , value)
self. http_proxy = value
--- aptdaemon/client.py 2012-05-08 22:44:15 +0000
+++ aptdaemon/client.py 2012-06-05 07:05:13 +0000
@@ -638,7 +638,7 @@
elif property_name == "Space":
- self.space = value
+ self.space = value or 0
elif property_name == "HttpProxy":
But I don't see in the code how this could happen that trans.space is None.