Looking this (Star Trek) up on the database...
--> -->| IndexError | Python 3.6.9: /usr/bin/python3 Tue Mar 17 04:56:28 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.
| /var/www/test/compare.py in <module>() |
| 225 form = cgi.FieldStorage() |
| 226 |
| => 227 compare_shows() |
| 228 |
| 229 show1 = form.getvalue("show1", "Star Trek") |
| compare_shows = <function compare_shows> |
| /var/www/test/compare.py in compare_shows() |
| 26 pattern = '/title/(tt.*?)/' |
| 27 title = re.findall(pattern, page) |
| => 28 if re.match("tt", title[0]): |
| 29 first_search = title[0] |
| 30 else: |
| global re = <module 're' from '/usr/lib/python3.6/re.py'>, re.match = <function match>, title = [] |
IndexError: list index out of range
args =
('list index out of range',)
with_traceback =
<built-in method with_traceback of IndexError object>