--> -->
 
 
<type 'exceptions.UnboundLocalError'>
Python 2.7.5: /usr/bin/python
Sat Apr 18 17:19:02 2026

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/vhosts/wohnen-in-herrliberg.ch/httpdocs/cgi-bin/en_monounit.cgi in ()
    491 
    492 ############################################################################################################################## PYTHON
    493 
=>  494 mystring = Wohneinheiten(Wohnungscode)
    495 print(mystring)
mystring undefined, Wohneinheiten = <function Wohneinheiten>, Wohnungscode = 'deAry-3Uost'
 /var/www/vhosts/wohnen-in-herrliberg.ch/httpdocs/cgi-bin/en_monounit.cgi in Wohneinheiten(Wohnungscode='deAry-3Uost')
     49         sys.path.insert(0, modulepath)
     50 
=>   51         bilderfiles = os.listdir(bildordner)
     52         bilder = sorted(bilderfiles)
     53         bilderanzahl = len(bilder)
bilderfiles undefined, os = <module 'os' from '/usr/lib64/python2.7/os.pyc'>, os.listdir = <built-in function listdir>, bildordner undefined

<type 'exceptions.UnboundLocalError'>: local variable 'bildordner' referenced before assignment
      args = ("local variable 'bildordner' referenced before assignment",)
      message = "local variable 'bildordner' referenced before assignment"