From f6d23bdf7e25abb00542d359e1ffb78dbcfd1453 Mon Sep 17 00:00:00 2001 From: ZyX Date: Sun, 3 Mar 2013 15:00:10 +0400 Subject: [PATCH] Always return a string in email_imap_alert segment Fixes #279 --- powerline/segments/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerline/segments/common.py b/powerline/segments/common.py index 3da5db47..29c65be1 100644 --- a/powerline/segments/common.py +++ b/powerline/segments/common.py @@ -484,7 +484,7 @@ def email_imap_alert(username, password, server='imap.gmail.com', port=993, fold return None return [{ 'highlight_group': 'email_alert', - 'contents': unread_count, + 'contents': str(unread_count), }]