Složka je prázdná.
<type 'exceptions.UnboundLocalError'> | Python 2.7.18: /usr/bin/python Fri Oct 18 12:12:08 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/doc/www.penicka.net/www/cgi-bin/print_files.py in <module>() |
22 |
23 if directory != '': |
=> 24 utils.print_dir_content_view(directory) |
25 |
26 print(web.get_template(footer)) |
utils = <module 'utils' from '/www/doc/www.penicka.net/www/cgi-bin/utils.pyc'>, utils.print_dir_content_view = <function print_dir_content_view>, directory = 'school_files/matematika/\xc5\xbd\xc3\xa1kovsk\xc3\xbd CLOUD/Krotil Maty\xc3\xa1\xc5\xa1 (2017)/Funkce/P\xc5\x99\xc3\xadm\xc3\xa1 um\xc4\x9brnost' |
/www/doc/www.penicka.net/www/cgi-bin/utils.py in print_dir_content_view(base_path='school_files/matematika/\xc5\xbd\xc3\xa1kovsk\xc3\xbd CLOUD/Krotil Maty\xc3\xa1\xc5\xa1 (2017)/Funkce/P\xc5\x99\xc3\xadm\xc3\xa1 um\xc4\x9brnost') |
144 print tag.tr_end() |
145 |
=> 146 if len(item) > 0: |
147 print '<div class="row">' |
148 for item in image: |
builtin len = <built-in function len>, item undefined |
<type 'exceptions.UnboundLocalError'>: local variable 'item' referenced before assignment
args =
("local variable 'item' referenced before assignment",)
message =
"local variable 'item' referenced before assignment"