--> -->
 
 
<type 'exceptions.UnboundLocalError'>
Python 2.6.6: /usr/bin/python
Tue Nov 13 17:44:07 2018

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 ()
  220 
  221 # Todo: some error checking...
  222 files = get_files(scenario, variable, 'map')
  223 error_message = ''
  224 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')
  196     if not key in product_map:
  197         return []
  198     path = product_map[key] + '/' + locale
  199     #files = ['../../greb/images/' + path + '/' + os.path.basename(f) for f in
  200     #    glob.glob('../../greb/images/' + path + '/*' + filetype + '.png')]
path undefined, global product_map = {'0101': 'scenario-01/tsurf', '0102': 'scenario-01/tatmos', '2001': 'scenario-20/tsurf', '2002': 'scenario-20/tatmos', '2003': 'scenario-20/tocean', '2004': 'scenario-20/vapor', '2005': 'scenario-20/ice', '2101': 'scenario-21/tsurf', '2102': 'scenario-21/tatmos', '2103': 'scenario-21/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"