From 3146b2a567788ea3775acc1b1b3b6810a5b247e7 Mon Sep 17 00:00:00 2001 From: facetoe Date: Sat, 28 Mar 2015 19:11:13 +0800 Subject: [PATCH] Add max_error_len to Github module. --- i3pystatus/github.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/i3pystatus/github.py b/i3pystatus/github.py index a777adf..204cf37 100644 --- a/i3pystatus/github.py +++ b/i3pystatus/github.py @@ -16,6 +16,7 @@ class Github(IntervalModule): * `{unread_count}` - number of unread notifications, empty if 0 """ + max_error_len = 50 unread_marker = "●" unread = '' color = '#78EAF2' @@ -49,8 +50,6 @@ class Github(IntervalModule): # Bad credentials if isinstance(data, dict): err_msg = data['message'] - if len(err_msg) > 10: - err_msg = "%s%s" % (err_msg[:10], '...') raise ConfigError(err_msg) unread = len(data)