| <type 'exceptions.TypeError'> | Python 2.7.18: /usr/bin/python2 Fri Nov 20 21:48:08 2026 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /home/wyndedco/sargeantwalker.co.uk/pv/oneday.cgi in <module>() |
| 76 write_err_page() |
| 77 |
| 78 if __name__ == '__main__': |
| => 79 main() |
| 80 |
| main = <function main> |
| /home/wyndedco/sargeantwalker.co.uk/pv/oneday.cgi in main() |
| 72 if dateobj: |
| 73 data = read_data(dateobj) |
| => 74 write_page(dateobj, data, include_header) |
| 75 else: |
| 76 write_err_page() |
| global write_page = <function write_page>, dateobj = datetime.date(2026, 11, 15), data = None, include_header = True |
| /home/wyndedco/sargeantwalker.co.uk/pv/oneday.cgi in write_page(dateobj=datetime.date(2026, 11, 15), day_data=None, include_header=True) |
| 17 print '\r' |
| 18 # TODO: Avoid broken prev/next links |
| => 19 print open('oneday.tmpl').read() % day_data |
| 20 |
| 21 def read_data(day): |
| builtin open = <built-in function open>, ).read undefined, day_data = None |
<type 'exceptions.TypeError'>: format requires a mapping
args =
('format requires a mapping',)
message =
'format requires a mapping'