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

Closed
vasil opened this issue Mar 12, 2020 · 1 comment
Closed

TypeError on empty, datetime expected value #9

vasil opened this issue Mar 12, 2020 · 1 comment
Assignees
Labels
bug

Comments

@vasil
Copy link
Contributor

@vasil vasil commented Mar 12, 2020

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

(venv) vasil@vt:~/Projects/lab1$ ./venv/bin/python Maki/http_or_table.py 
Traceback (most recent call last):
  File "Maki/http_or_table.py", line 175, in <module>
    main()
  File "Maki/http_or_table.py", line 36, in main
    update_table()
  File "Maki/http_or_table.py", line 40, in update_table
    content = get_content()
  File "Maki/http_or_table.py", line 90, in get_content
    print("Seconds passed since last update: " + str((datetime.today() - 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
@makikaka

This comment has been minimized.

Copy link
Contributor

@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
Projects
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.