Edgewall Software

Ticket #3950 (closed defect: worksforme)

Opened 2 years ago

Last modified 2 years ago

Attachment: AttributeError: 'int' object has no attribute 'astimezone'

Reported by: Markus Tacker <m@…> Owned by: jonas
Priority: normal Milestone:
Component: wiki system Version: devel
Severity: normal Keywords:
Cc:

Description

In r3945 i get this error when trying to display a PNG attached to a wiki page:

Trac[main] ERROR: 'int' object has no attribute 'astimezone'
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 377, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.4/site-packages/trac/attachment.py", line 388, in process_request
    data = self._render_view(req, attachment)
  File "/usr/lib/python2.4/site-packages/trac/attachment.py", line 535, in _render_view
    req.check_modified(attachment.time)
  File "/usr/lib/python2.4/site-packages/trac/web/api.py", line 301, in check_modified
    etag = 'W"%s/%s/%s"' % (self.authname, http_date(time), extra)
  File "/usr/lib/python2.4/site-packages/trac/util/datefmt.py", line 92, in http_date
    t = t.astimezone(utc)
AttributeError: 'int' object has no attribute 'astimezone'

Attachments

Change History

Changed 2 years ago by cboos

  • status changed from new to closed
  • resolution set to worksforme

You should have looked at t.e.o's timeline before creating this ticket, I believe this was fixed just before ;) (in r3965)

Add/Change #3950 (Attachment: AttributeError: 'int' object has no attribute 'astimezone')

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from jonas. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.