Edgewall Software
Modify

Opened 13 years ago

Closed 13 years ago

Last modified 10 years ago

#3950 closed defect (worksforme)

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

Reported by: Markus Tacker <m@…> Owned by: Jonas Borgström
Priority: normal Milestone:
Component: wiki system Version: devel
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:

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 (0)

Change History (1)

comment:1 by Christian Boos, 13 years ago

Resolution: worksforme
Status: newclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to as closed The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.