Skip to content

Sometimes attrs["source"] is None #4185

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

Closed
wants to merge 2 commits into from
Closed

Conversation

montsamu
Copy link
Contributor

@montsamu montsamu commented Apr 24, 2025

And this results in an absolute wall of errors in every robot log, e.g.:

20250424 14:20:05.655 | ERROR | Calling method '_start_keyword' of listener 'Browser' failed: TypeError: expected str, bytes or os.PathLike object, not NoneType |  
20250424 14:20:05.663 | ERROR | Calling method '_start_keyword' of listener 'Browser' failed: TypeError: expected str, bytes or os.PathLike object, not NoneType |  
20250424 14:20:05.671 | ERROR | Calling method '_start_keyword' of listener 'Browser' failed: TypeError: expected str, bytes or os.PathLike object, not NoneType |  
20250424 14:20:05.673 | ERROR | Calling method '_start_keyword' of listener 'Browser' failed: TypeError: expected str, bytes or os.PathLike object, not NoneType |  
20250424 14:20:05.694 | ERROR | Calling method '_start_keyword' of listener 'Browser' failed: TypeError: expected str, bytes or os.PathLike object, not NoneType |  
20250424 14:20:05.708 | ERROR | Calling method '_start_keyword' of listener 'Browser' failed: TypeError: expected str, bytes or os.PathLike object, not NoneType

NOTE: This is robot 5.0.1.

And this results in an absolute wall of error messages in every robot log:

```

20250424 14:20:05.655	ERROR	Calling method '_start_keyword' of listener 'Browser' failed: TypeError: expected str, bytes or os.PathLike object, not NoneType	
20250424 14:20:05.663	ERROR	Calling method '_start_keyword' of listener 'Browser' failed: TypeError: expected str, bytes or os.PathLike object, not NoneType	
20250424 14:20:05.671	ERROR	Calling method '_start_keyword' of listener 'Browser' failed: TypeError: expected str, bytes or os.PathLike object, not NoneType	
20250424 14:20:05.673	ERROR	Calling method '_start_keyword' of listener 'Browser' failed: TypeError: expected str, bytes or os.PathLike object, not NoneType	
20250424 14:20:05.694	ERROR	Calling method '_start_keyword' of listener 'Browser' failed: TypeError: expected str, bytes or os.PathLike object, not NoneType
```
@aaltat
Copy link
Member

aaltat commented Apr 24, 2025

There is a small lint issue, could you run inv lint?

@aaltat
Copy link
Member

aaltat commented May 2, 2025

Closed on favor of #4194

@allcontributors please add @montsamu for code.

Copy link
Contributor

@aaltat

I've put up a pull request to add @montsamu! 🎉

@aaltat aaltat closed this May 2, 2025
@aaltat aaltat mentioned this pull request May 2, 2025
@montsamu
Copy link
Contributor Author

montsamu commented May 2, 2025

Thanks so much @aaltat sorry I did not get to the linting issue myself, much appreciated! The wall of errors will be no more!

@aaltat
Copy link
Member

aaltat commented May 2, 2025

No problems, glad to help.

For next time, we have tooling that fixed linting errors automatically: inv lint-python --fix

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.

2 participants