Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: throw FileNotFoundError for nonexistant files#3014

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@Skn0tt
Copy link
Member

Closesmicrosoft/playwright#38450. We were only checking file existence on the server (https://github.com/microsoft/playwright/blob/f9e039408b70ab27b5107de3863343236d8835ae/packages/playwright-core/src/server/dom.ts#L655-L657), but didn't surface the error, so it showed up as a timeout. In Node.js, we check file existence on the client (https://github.com/microsoft/playwright/blob/f9e039408b70ab27b5107de3863343236d8835ae/packages/playwright-core/src/client/elementHandle.ts#L263), mirroring this behaviour to Python.

@Skn0ttSkn0tt requested a review fromdgozmanDecember 8, 2025 08:31
@Skn0ttSkn0tt self-assigned thisDec 8, 2025
@dgozman
Copy link
Contributor

I don't quite understand why server-side code would lead to a timeout, but client-side check sounds good to me.

@Skn0tt
Copy link
MemberAuthor

The server-side check is in a retry condition, and we don't abort the retry when it occurs. Client-side is better anyways because it throws the platform-standard exceptions.

@Skn0ttSkn0tt merged commitd3f5438 intomicrosoft:mainDec 8, 2025
38 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@dgozmandgozmandgozman approved these changes

Assignees

@Skn0ttSkn0tt

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Feature]: Descriptive error message for a file not found error using set_input_files()

2 participants

@Skn0tt@dgozman

[8]ページ先頭

©2009-2025 Movatter.jp