Did I find the right examples for you? yes no

All Samples(13)  |  Call(13)  |  Derive(0)  |  Import(0)

src/w/s/WSME-0.6/wsme/root.py   WSME(Download)
 
        except Exception as e:
            infos = wsme.api.format_exception(sys.exc_info(), self._debug)
            if isinstance(e, ClientSideError):
                request.client_errorcount += 1
                res_content_type = protocol.get_response_contenttype(request)
        except Exception:
            infos = wsme.api.format_exception(sys.exc_info(), self._debug)
            request.server_errorcount += 1
            res.text = protocol.encode_error(context, infos)

src/w/s/wsme-HEAD/wsme/root.py   wsme(Download)
 
        except Exception as e:
            infos = wsme.api.format_exception(sys.exc_info(), self._debug)
            if isinstance(e, ClientSideError):
                request.client_errorcount += 1
                res_content_type = protocol.get_response_contenttype(request)
        except Exception:
            infos = wsme.api.format_exception(sys.exc_info(), self._debug)
            request.server_errorcount += 1
            res.text = protocol.encode_error(context, infos)

src/w/s/WSME-0.6/wsmeext/pecan.py   WSME(Download)
                    orig_code = getattr(orig_exception, 'code', None)
                    data = wsme.api.format_exception(
                        exception_info,
                        pecan.conf.get('wsme', {}).get('debug', False)
                    )

src/w/s/wsme-HEAD/wsmeext/pecan.py   wsme(Download)
                    orig_code = getattr(orig_exception, 'code', None)
                    data = wsme.api.format_exception(
                        exception_info,
                        pecan.conf.get('wsme', {}).get('debug', False)
                    )

src/l/i/libra-HEAD/libra/api/wsme_overrides.py   libra(Download)
            except:
                data = wsme.api.format_exception(
                    sys.exc_info(),
                    pecan.conf.get('wsme', {}).get('debug', False)
                )

src/w/s/WSME-0.6/wsmeext/tg1.py   WSME(Download)
                    else:
                        orig_code = getattr(orig_exception, 'code', None)
                    data = wsme.api.format_exception(exception_info)
                finally:
                    del exception_info

src/w/s/wsme-HEAD/wsmeext/tg1.py   wsme(Download)
                    else:
                        orig_code = getattr(orig_exception, 'code', None)
                    data = wsme.api.format_exception(exception_info)
                finally:
                    del exception_info

src/w/s/WSME-0.6/wsmeext/flask.py   WSME(Download)
                    orig_exception = exception_info[1]
                    orig_code = getattr(orig_exception, 'code', None)
                    data = wsme.api.format_exception(exception_info)
                finally:
                    del exception_info

src/w/s/WSME-0.6/wsmeext/cornice.py   WSME(Download)
                    orig_exception = exception_info[1]
                    orig_code = getattr(orig_exception, 'code', None)
                    data = wsme.api.format_exception(exception_info)
                    if orig_code is not None:
                        data['orig_code'] = orig_code

src/w/s/wsme-HEAD/wsmeext/flask.py   wsme(Download)
                    orig_exception = exception_info[1]
                    orig_code = getattr(orig_exception, 'code', None)
                    data = wsme.api.format_exception(exception_info)
                finally:
                    del exception_info

  1 | 2  Next