ValueError | Python 3.6.8: /usr/bin/python3 Fri Mar 29 12:58:54 2024 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/www/sourceware/htdocs/cygwin/cgi-bin2/jobs.cgi in <module>() |
209 # if any query variable appears more than once, use the value of the last |
210 # occurence. |
211 parse = {k: v[-1] for k, v in parse.items()} |
212 |
=> 213 print(results(parse)) |
builtin print = <built-in function print>, results = <function results>, parse = {'id': '3148..3151,3154-3156'} |
/www/sourceware/htdocs/cygwin/cgi-bin2/jobs.cgi in results(parse={'id': '3148..3151,3154-3156'}) |
39 def results(parse): |
40 page = int(parse.get('page', 1)) |
=> 41 highlight = int(parse.get('id', 0)) |
42 |
43 result = textwrap.dedent('''\ |
highlight undefined, builtin int = <class 'int'>, parse = {'id': '3148..3151,3154-3156'}, parse.get = <built-in method get of dict object> |
ValueError: invalid literal for int() with base 10: '3148..3151,3154-3156'
args =
("invalid literal for int() with base 10: '3148..3151,3154-3156'",)
with_traceback =
<built-in method with_traceback of ValueError object>