Changeset 5247 for cows


Ignore:
Timestamp:
05/05/09 13:40:04 (10 years ago)
Author:
spascoe
Message:

Slightly better error reporting when not using Pylons debugger

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cows/trunk/cows/pylons/ows_controller.py

    r4914 r5247  
    8989                start_response('400 Bad Request', [('Content-type', 'text/xml')]) 
    9090                return [render_ows_exception(e)] 
     91            except Exception, e: 
     92                log.exception(e) 
     93 
     94                start_response('500 Internal Server Error', [('Content-type', 'text/plain')]) 
     95                return ['Please see server logs for details'] 
    9196 
    9297    def _loadOwsParams(self): 
Note: See TracChangeset for help on using the changeset viewer.