Skip to content

Commit 8ffa77e

Browse files
fix error name smh
1 parent 06bdf1c commit 8ffa77e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ async def dynamic_download(request: Request, key: str, file_name: str = Query(..
283283
response = await page.goto(result)
284284
if response.ok:
285285
content = await response.body()
286-
except Error:
286+
except PlaywrightError:
287287
try:
288288
download_future = page.wait_for_event("download")
289289
response = await page.goto(result)

0 commit comments

Comments
 (0)