--> -->
 
 
<type 'exceptions.KeyError'>
Python 2.7: C:\Python27\python.exe
Sun Feb 05 06:13:22 2012

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 c:\inetpub\wwwroot\elecciones\menu_candidaturas.py in ()
     15 Html.Header()
     16 Anio = Form.getAnio()
=>   17 DB = Database.Connect(Anio)
     18 
     19 Html.Begin('RESULTADOS GENERALES (Elecciones %s)' % Anio,
DB undefined, Database = <module 'Database' from 'c:\inetpub\wwwroot\elecciones\Database.pyc'>, Database.Connect = <function Connect>, Anio = None
 c:\inetpub\wwwroot\elecciones\Database.py in Connect(anio=None)
     14 def Connect(anio=Config.ULTIMAS_ELECCIONES):
     15     global _DB_CONECTIONS_CACHE
=>   16     dsn = Config.DATA_SOURCE_NAMES[anio]
     17     if dsn in _DB_CONECTIONS_CACHE:
     18         db = _DB_CONECTIONS_CACHE[dsn]
dsn undefined, global Config = <module 'Config' from 'c:\inetpub\wwwroot\elecciones\Config.pyc'>, Config.DATA_SOURCE_NAMES = {1999: 'elecciones99/monasterio@oracle', 2003: 'elecciones03/monasterio@oracle', 2007: 'elecciones07/monasterio@oracle', 2011: 'elecciones11/monasterio@oracle', 'LABO': 'elecciones07_labo/monasterio@oracle', 'default': 'agora/agora@oracle'}, anio = None

<type 'exceptions.KeyError'>: None
      args = (None,)
      message = None