mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-23 00:29:59 +02:00
simplify try/except by moving outside for loop
This commit is contained in:
@ -119,10 +119,11 @@ def parse(
|
||||
"""
|
||||
jc.utils.compatibility(__name__, info.compatible, quiet)
|
||||
jc.utils.streaming_input_type_check(data)
|
||||
line = ''
|
||||
|
||||
try:
|
||||
for line in data:
|
||||
output_line: Dict = {}
|
||||
try:
|
||||
jc.utils.streaming_line_input_type_check(line)
|
||||
|
||||
# parse the content here
|
||||
|
Reference in New Issue
Block a user