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

Unsupported operand type(s) for + #1

Open
BahMike opened this issue Mar 30, 2020 · 1 comment
Open

Unsupported operand type(s) for + #1

BahMike opened this issue Mar 30, 2020 · 1 comment

Comments

@BahMike
Copy link

BahMike commented Mar 30, 2020

File "veritaserum/reporter.py", line 60, in __clean if now > (timestamp + self.maxage): TypeError: unsupported operand type(s) for +: 'datetime.datetime' and 'NoneType'

This occurs in the clean section of the code which prevents cached messages from being deleted. The rest of the script works as intended.

@BahMike
Copy link
Author

BahMike commented Mar 30, 2020

Changing self.maxage = maxage to self.maxage = timedelta(hours=1) seems to have fixed the problem. maxage isn't being set properly for some reason.

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

No branches or pull requests

1 participant