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

TypeError on empty, datetime expected value #9

vasil opened this issue Mar 12, 2020 · 1 comment

TypeError on empty, datetime expected value #9

vasil opened this issue Mar 12, 2020 · 1 comment


Copy link

@vasil vasil commented Mar 12, 2020

На прв старт, најверојатно во недостаток на memcache запис ми ја даде оваа грешка.

(venv) vasil@vt:~/Projects/lab1$ ./venv/bin/python Maki/ 
Traceback (most recent call last):
  File "Maki/", line 175, in <module>
  File "Maki/", line 36, in main
  File "Maki/", line 40, in update_table
    content = get_content()
  File "Maki/", line 90, in get_content
    print("Seconds passed since last update: " + str(( - last_date).seconds) + "s")
TypeError: unsupported operand type(s) for -: 'datetime.datetime' and 'NoneType'

Пред да читаш атрибут на некој објект провери дали е тоа тоа што мислиш, а јас пробувамк ако оди ова со github issues ;)

@vasil vasil added the bug label Mar 12, 2020

This comment has been minimized.

Copy link

@makikaka makikaka commented Mar 12, 2020

Интересно. А не ни ја сетирам никаде, освен преку memcache. Сум заборавил на тоа кога ја дотерував. Сега го средив.

@makikaka makikaka closed this Mar 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.