TypeError: can't compare datetime.datetime to str

Bug #1010507 reported by Daniel Holbach
6
This bug affects 1 person
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_or_update_app(app_url)
  File "/home/daniel/bzr/apps-brancher/brancher/appcache.py", line 59, in import_or_update_app
    log = app.branch_or_update(log)
  File "/home/daniel/bzr/apps-brancher/brancher/app.py", line 72, in branch_or_update
    log = self.check_tarball(log)
  File "/home/daniel/bzr/apps-brancher/brancher/app.py", line 45, in check_tarball
    sock, last_modified = web.get_last_modified(self.tarball_url, self.tarball_timestamp)
  File "/home/daniel/bzr/apps-brancher/brancher/web.py", line 40, in get_last_modified
    if tarball_timestamp and datetime_lm and datetime_lm <= tarball_timestamp:
TypeError: can't compare datetime.datetime to str

Related branches

Changed in apps-brancher:
importance: Undecided → High
Revision history for this message
Daniel Holbach (dholbach) wrote :

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. :-)

Changed in apps-brancher:
assignee: nobody → Michael Hall (mhall119)
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.