NameError | Python 3.8.10: /usr/bin/python3 Mon Jun 3 23:06:32 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.
/var/www/html/metadata_xml.py in <module> |
1120 |
1121 |
=> 1122 if getrecord_layer["title"] !='': |
1123 getrecord_layer["title"]=getrecord_layer["title"].encode("ascii", "xmlcharrefreplace") |
1124 getrecord_layer["title"]=getrecord_layer["title"].decode("utf-8") |
getrecord_layer undefined |
NameError: name 'getrecord_layer' is not defined
args =
("name 'getrecord_layer' is not defined",)
with_traceback =
<built-in method with_traceback of NameError object>