Ticket #3950 (closed defect: worksforme)
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
Note: See
TracTickets for help on using
tickets.


