vantages ⥯
--> -->
|
AttributeError | Python 3.10.12: /bin/python3 Wed Jun 5 14:42:14 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.
/usr/home/gmcdonald/public_html/everynoise_public/2021_around_the_world.cgi in <module> |
164 print('<div class=genrename>vantages <a href="?vantage=%s&sort=%s" class=note style="font-size: 75%%; font-weight: normal" title="sort by activity or name">⥯</a></div>' % (urllib.parse.quote(showvantage), 'name' if sortgenres == 'activity' else 'activity')) |
165 if showvantage: |
=> 166 print('<div class=selected><a href="?vantage=%s%s" class=current>%s</a></div>' % (urllib.parse.quote(showvantage), '' if sortgenres == 'activity' else ('&sort=%s' % cgi.escape(sortgenres, True)), cgi.escape(trans(showvantage), True))) |
167 |
168 if sortgenres == 'activity': |
builtin print = <built-in function print>, urllib = <module 'urllib' from '/usr/lib/python3.10/urllib/__init__.py'>, urllib.parse = <module 'urllib.parse' from '/usr/lib/python3.10/urllib/parse.py'>, urllib.parse.quote = <function quote>, showvantage = 'Earth', sortgenres = 'activity', cgi = <module 'cgi' from '/usr/lib/python3.10/cgi.py'>, cgi.escape undefined, trans = <function trans> |
AttributeError: module 'cgi' has no attribute 'escape'
args =
("module 'cgi' has no attribute 'escape'",)
name =
'escape'
obj =
<module 'cgi' from '/usr/lib/python3.10/cgi.py'>
with_traceback =
<built-in method with_traceback of AttributeError object>