Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Skip empty url lines #155

Merged
merged 1 commit into from
Nov 23, 2023
Merged

Conversation

skerit
Copy link
Contributor

@skerit skerit commented Nov 22, 2023

My colleague kept getting the Protocol error (Page.navigate): Cannot navigate to invalid URL error, even though the URLs in the urls.txt file seemed ok.

Turns out it was because her text editor kept adding a trailing newline, breaking the script.
A lot of editors do this, and it's not really clear to the user what is exactly going wrong, so it's best to just filter out any empty line.

@skerit skerit requested a review from ttsukagoshi as a code owner November 22, 2023 16:19
@ttsukagoshi ttsukagoshi merged commit 14e2188 into ttsukagoshi:main Nov 23, 2023
4 checks passed
@ttsukagoshi
Copy link
Owner

Hi @skerit, thank you for your contribution. Small changes, big improvement! 🎊

@mherchel
Copy link

confirmed I'm running into this too. Did this make the latest stable?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants