1
0
Fork 0

Merge branch 'master' of ssh://github.com/jdkaplan/dotfiles

This commit is contained in:
Jeremy Kaplan 2016-08-14 19:26:09 -04:00
commit a9681d8308

View file

@ -117,11 +117,11 @@ def mail_update(_):
'mit': '#000099', 'mit': '#000099',
} }
for account, color in sorted(account_colors.items()): for account, color in sorted(account_colors.items()):
try:
mail_path = os.path.expanduser('~/.mail/{}/Inbox/new'.format(account)) mail_path = os.path.expanduser('~/.mail/{}/Inbox/new'.format(account))
try:
message_count = len(os.listdir(mail_path))
except FileNotFoundError: except FileNotFoundError:
continue continue
message_count = len(os.listdir(mail_path))
colors = {} colors = {}
if message_count: if message_count:
colors['bg'] = color colors['bg'] = color