enkore / i3pystatus

A complete replacement for i3status
https://i3pystatus.readthedocs.io/
MIT License
445 stars 188 forks source link

i3pystatus.mail: TypeError: unsupported operand type(s) for +: 'int' and 'NoneType' #704

Closed vestingz closed 5 years ago

vestingz commented 5 years ago
2019-01-07 15:14:23,314 [ERROR   ][i3pystatus.mail.Mail 100] Exception in Thread-5 at Mon 07 Jan 2019 03:14:23 PM CET, module Mail
Traceback (most recent call last):
  File "/home/julian/.local/lib/python3.7/site-packages/i3pystatus/core/threading.py", line 92, in __call__
    self.workload()
  File "/home/julian/.local/lib/python3.7/site-packages/i3pystatus/core/modules.py", line 297, in __call__
    self.run()
  File "/home/julian/.local/lib/python3.7/site-packages/i3pystatus/mail/__init__.py", line 63, in run
    unread = unread + backend.unread
TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'

Occurs predominantly in situations with unstable wifi. I am using the version after this commit.

chestm007 commented 5 years ago

Hi, that's unusual as line 63 in mail/__init__.py was changed too unread = unread + temp 4 commits prior to the one you mentioned your running - this behaviour was why that line got changed :)

vestingz commented 5 years ago

You are absolutely right, please excuse this wasted issue! Thanks for the good work :)

chestm007 commented 5 years ago

all good :)