diff options
author | ianb <devnull@localhost> | 2005-10-07 01:08:06 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2005-10-07 01:08:06 +0000 |
commit | 42bcdfe93f3d6dc8a317e4e31a535664a87fde97 (patch) | |
tree | 27760a54a553f30240000f7bc6224667757cf3c3 /paste/exceptions/collector.py | |
parent | 2368386e137bcb0b381b887af472ffc26d42136a (diff) | |
download | paste-42bcdfe93f3d6dc8a317e4e31a535664a87fde97.tar.gz |
Fix doc strings
Diffstat (limited to 'paste/exceptions/collector.py')
-rw-r--r-- | paste/exceptions/collector.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/paste/exceptions/collector.py b/paste/exceptions/collector.py index cd56544..8a92a9c 100644 --- a/paste/exceptions/collector.py +++ b/paste/exceptions/collector.py @@ -85,7 +85,7 @@ class ExceptionCollector: The actually interpretation of these values is largely up to the reporters and formatters. - collect_exception(*sys.exc_info()) will return an object with + ``collect_exception(*sys.exc_info())`` will return an object with several attributes: ``frames``: @@ -464,11 +464,13 @@ col = ExceptionCollector() def collect_exception(t, v, tb, limit=None): """ - Use like: + Collection an exception from ``sys.exc_info()``. + + Use like:: - try: - blah blah - except: - exc_data = collect_exception(*sys.exc_info()) + try: + blah blah + except: + exc_data = collect_exception(*sys.exc_info()) """ return col.collectException(t, v, tb, limit=limit) |