TypeError: can't compare datetime.datetime to str
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Apps Brancher |
Fix Released
|
High
|
Michael Hall |
Bug Description
Up until now I have no idea why this happens.
Traceback (most recent call last):
File "./process-queues", line 17, in <module>
main()
File "./process-queues", line 12, in main
log = cache.import_
File "/home/
log = app.branch_
File "/home/
log = self.check_
File "/home/
sock, last_modified = web.get_
File "/home/
if tarball_timestamp and datetime_lm and datetime_lm <= tarball_timestamp:
TypeError: can't compare datetime.datetime to str
Related branches
- Daniel Holbach: Pending requested
-
Diff: 12 lines (+1/-1)1 file modifiedbrancher/appcache.py (+1/-1)
Changed in apps-brancher: | |
importance: | Undecided → High |
Great work in figuring this out.
The reason this didn't become a more obvious problem is that normally the cache would be set up, the app would be added, the data saved (and modified as you found out), and the for loop would move on to the next app. In our case there are a few apps which are processed twice, because they turn up in several myApps queues, which seems like another bug to me. :-)