1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-17 00:07:37 +02:00

formatting

This commit is contained in:
Kelly Brazil
2021-09-25 08:23:46 -07:00
parent e6a80fea32
commit 31b69b3242
2 changed files with 6 additions and 6 deletions

View File

@ -125,14 +125,14 @@ Returns:
```python
stream_success(output_line, ignore_exceptions)
```
add _jc_meta object to output line if -qq (ignore_exceptions) option is used
Add `_jc_meta` object to output line if `ignore_exceptions=True`
## stream_error
```python
stream_error(e, ignore_exceptions, line)
```
reraise the stream exception with annotation or print an error _jc_meta
field if ignore_exceptions=True
Reraise the stream exception with annotation or print an error `_jc_meta`
field if `ignore_exceptions=True`
## timestamp

View File

@ -210,7 +210,7 @@ def convert_to_bool(value):
def stream_success(output_line, ignore_exceptions):
"""add _jc_meta object to output line if -qq (ignore_exceptions) option is used"""
"""Add `_jc_meta` object to output line if `ignore_exceptions=True`"""
if ignore_exceptions:
output_line.update({'_jc_meta': {'success': True}})
@ -218,8 +218,8 @@ def stream_success(output_line, ignore_exceptions):
def stream_error(e, ignore_exceptions, line):
"""reraise the stream exception with annotation or print an error _jc_meta
field if ignore_exceptions=True
"""Reraise the stream exception with annotation or print an error `_jc_meta`
field if `ignore_exceptions=True`
"""
if not ignore_exceptions:
e.args = (str(e) + '... Use the ignore_exceptions option (-qq) to ignore streaming parser errors.',)