--> -->
 
 
<type 'exceptions.UnboundLocalError'>
Python 2.6.6: /usr/bin/python
Sun Sep 24 05:00:27 2017

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/mscm/greb/cgi-bin/scny_i18n.py in ()
  175 
  176 # Todo: some error checking...
  177 files = get_files(scenario, variable, 'map')
  178 error_message = ''
  179 if len(files) == 0:
files undefined, get_files = <function get_files>, scenario = '01', variable = '01'
 /var/www/html/mscm/greb/cgi-bin/scny_i18n.py in get_files(scenario=1, variable=1, filetype='map')
  151     if not key in product_map:
  152         return []
  153     path = product_map[key] + '/' + locale
  154     #files = ['../../greb/images/' + path + '/' + os.path.basename(f) for f in 
  155     #    glob.glob('../../greb/images/' + path + '/*' + filetype + '.png')]
path undefined, global product_map = {'0101': 'exp_12_a1b', '0201': 'exp_12_a1b', '10001': 'scenario-100/tsurf', '10002': 'scenario-100/tatmos', '10003': 'scenario-100/tocean', '10004': 'scenario-100/vapor', '10005': 'scenario-100/ice', '1001': 'scenario-10/tsurf', '1002': 'scenario-10/tatmos', '1003': 'scenario-10/tocean', ...}, key = '0101', locale undefined

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