<type 'exceptions.UnboundLocalError'> | Python 2.7.6: /usr/bin/python Mon Mar 20 21:29:16 2023 |
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/lanet-vi.fi.uba.ar/i_am_here/i_am_here_cgi/search.py in |
90 #obtengo info de la ip (pais, numero de as y nombre de as) |
91 |
=> 92 num_as, name_as, country, nic_as = pais_num_name_nic(ip_dire, idioma='EN') |
93 |
94 archlog = open(logconsultas, 'a') |
num_as undefined, name_as undefined, country undefined, nic_as undefined, pais_num_name_nic = <function pais_num_name_nic>, ip_dire = '3.238.202.76', idioma undefined |
/var/www/lanet-vi.fi.uba.ar/i_am_here/i_am_here_cgi/info.py in pais_num_name_nic(ip_dire='3.238.202.76', idioma='langEN') |
150 return False |
151 |
=> 152 return num_as, nameas, namepais, nic |
153 |
154 |
num_as = 'UNKNOWN', nameas = 'UNKNOWN', namepais = 'UNKNOWN', nic undefined |
<type 'exceptions.UnboundLocalError'>: local variable 'nic' referenced before assignment
args =
("local variable 'nic' referenced before assignment",)
message =
"local variable 'nic' referenced before assignment"