mirror of https://github.com/tiangolo/fastapi.git
more neutral text
Co-authored-by: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com>
This commit is contained in:
parent
7dde3ee346
commit
1ea1ff58be
|
|
@ -12,7 +12,7 @@ async def get_username_reraises():
|
|||
async with await open_file("/non_existing/path.txt", "r") as f:
|
||||
yield await f.read() # pragma: no cover
|
||||
except OSError as ex:
|
||||
raise RuntimeError("File something something, wubba lubba dub dub!") from ex
|
||||
raise RuntimeError("File read error") from ex
|
||||
|
||||
|
||||
async def get_username_doesnt_reraise():
|
||||
|
|
|
|||
Loading…
Reference in New Issue