fix raising exception.
This commit is contained in:
parent
adf02310ef
commit
bd8c30d80f
@ -52,8 +52,8 @@ async def diff_async(differ, last_text, text):
|
|||||||
return differ.inline_json_diff(last_text, text)
|
return differ.inline_json_diff(last_text, text)
|
||||||
try:
|
try:
|
||||||
result = await asyncio.wait_for(_diff(), DIFF_TIMEOUT)
|
result = await asyncio.wait_for(_diff(), DIFF_TIMEOUT)
|
||||||
except asyncio.TimeoutError:
|
except asyncio.TimeoutError as e:
|
||||||
raise
|
raise e
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def calculate_persistence(tokens_added):
|
def calculate_persistence(tokens_added):
|
||||||
|
Loading…
Reference in New Issue
Block a user