-
Notifications
You must be signed in to change notification settings - Fork 409
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
Fixing #263 #271
Fixing #263 #271
Conversation
…d fix bug where bool instead of None would be returned
Can you check with a result ? |
Glad we have the checks for the python version. It catched an incompatibility issue with datetime and python <3.11 |
Spoke with @NeffIsBack, I think catching that exception and having a proper error would be nice to let users know what the problem is instead of a stacktrace |
Running tests now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes #263 by changing return value from
False
toNone
to match expected value, when handling errors. Also add a bit of error handling (to actually display the correct error) and string concatenation to prevent errors such as these in the future.Before:
![image](https://private-user-images.githubusercontent.com/61382599/324257648-d5c4e52f-e100-4dc8-9cca-bc41990774d1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NzA5NTUsIm5iZiI6MTczOTY3MDY1NSwicGF0aCI6Ii82MTM4MjU5OS8zMjQyNTc2NDgtZDVjNGU1MmYtZTEwMC00ZGM4LTljY2EtYmM0MTk5MDc3NGQxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDAxNTA1NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBlNjYyMmYzZjQ4MTA5YTcxODZjYTUyYmZmNzY4MjAyNjQ2YWM0MzU2NWYxNjFjOGI5N2I0ZWUwNmZiODJmZDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Xmx4a7izeF5bOogguhoJsQV30Prx6LsLdWvFWiXZcGk)
After:
![image](https://private-user-images.githubusercontent.com/61382599/324257863-ffe6a2f3-c828-4091-b086-fd739c3b6a6e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NzA5NTUsIm5iZiI6MTczOTY3MDY1NSwicGF0aCI6Ii82MTM4MjU5OS8zMjQyNTc4NjMtZmZlNmEyZjMtYzgyOC00MDkxLWIwODYtZmQ3MzljM2I2YTZlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDAxNTA1NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVmODRmZDgyMDBiZTJhNzBmYzZkMTA3M2IwNGZhNjYxYmFiY2UwYjNiOWRjNWRiNGEwNGM0YzBmYzA5ODdhNWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.g1Rq429D-WtQTabxWUrFw-haUK6V_6f7lKVSrzuu5w0)