bugsnag / bugsnag-python

Official BugSnag error monitoring and error reporting for django, flask, tornado and other python apps.
https://docs.bugsnag.com/platforms/python/
MIT License
84 stars 42 forks source link

Accept PathLike as project root #344

Closed 0HyperCube closed 1 year ago

0HyperCube commented 1 year ago

Goal

Currently if a PathLike object is passed in such as PurePath or Path from pathlib, the path will not be set and a warning is produced. The PathLike object should be converted to a string and accepted.

Changeset

Testing

Modification to test_validate_project_root to ensure that PathLike objects are accepted and converted to strings.