diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/guide/guide.org | 2 | ||||
-rw-r--r-- | doc/guide/wsgi.py.txt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/guide/guide.org b/doc/guide/guide.org index ad0c5953a..55c172535 100644 --- a/doc/guide/guide.org +++ b/doc/guide/guide.org @@ -754,7 +754,7 @@ def run(api): api.log.info('operation aborted') except PublicError, e: error = e - except StandardError, e: + except Exception, e: api.log.exception('%s: %s', e.__class__.__name__, str(e)) error = InternalError() if error is not None: diff --git a/doc/guide/wsgi.py.txt b/doc/guide/wsgi.py.txt index 2c4a9aaaa..eb64f3a82 100644 --- a/doc/guide/wsgi.py.txt +++ b/doc/guide/wsgi.py.txt @@ -13,7 +13,7 @@ env._finalize_core(**dict(DEFAULT_CONFIG)) api.bootstrap(context='server', debug=env.debug, log=None) (ref:wsgi-app-bootstrap) try: api.finalize() (ref:wsgi-app-finalize) -except StandardError, e: +except Exception, e: api.log.error('Failed to start IPA: %s' % e) else: api.log.info('*** PROCESS START ***') |