From 97fd940e1706960704201ea3dd20e0a93fe66a18 Mon Sep 17 00:00:00 2001 From: Nikolay Polyarniy Date: Thu, 1 Dec 2016 19:09:33 +0300 Subject: [PATCH] gpu_temp: setting "display_if" default value fixed gpu_temp setting "display_if" (introduced in https://github.com/enkore/i3pystatus/pull/382) default value expected to be string (like in https://github.com/enkore/i3pystatus/pull/383) Error message: ``` GPUTemperature: TypeError: eval() arg 1 must be a string, bytes or code object ``` --- i3pystatus/gpu_temp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3pystatus/gpu_temp.py b/i3pystatus/gpu_temp.py index 6c2fb5d..6ec4fdc 100644 --- a/i3pystatus/gpu_temp.py +++ b/i3pystatus/gpu_temp.py @@ -24,7 +24,7 @@ class GPUTemperature(IntervalModule): color = "#FFFFFF" alert_temp = 90 alert_color = "#FF0000" - display_if = True + display_if = 'True' def run(self): temp = gpu.query_nvidia_smi().temp