summaryrefslogtreecommitdiff
path: root/paste/exceptions/collector.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2005-10-07 01:08:06 +0000
committerianb <devnull@localhost>2005-10-07 01:08:06 +0000
commit42bcdfe93f3d6dc8a317e4e31a535664a87fde97 (patch)
tree27760a54a553f30240000f7bc6224667757cf3c3 /paste/exceptions/collector.py
parent2368386e137bcb0b381b887af472ffc26d42136a (diff)
downloadpaste-42bcdfe93f3d6dc8a317e4e31a535664a87fde97.tar.gz
Fix doc strings
Diffstat (limited to 'paste/exceptions/collector.py')
-rw-r--r--paste/exceptions/collector.py14
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)