From ab50ec0c9219dcb5ba34e5633e98fc5097478fea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nemanja=20Nedeljkovi=C4=87?= Date: Mon, 27 Aug 2018 12:40:26 +0200 Subject: [PATCH] Fix for Arch linux I do not know why, but, on my computer, line is bytes and not string. This fixes it. --- salamandra.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/salamandra.py b/salamandra.py index 9aa94fd..3bb72e2 100755 --- a/salamandra.py +++ b/salamandra.py @@ -29,6 +29,8 @@ def process_line(line, ui, threshold, sound): """ ui.update_status('Reading') try: + if type(line) is bytes: + line = line.decode("utf-8") line = line.split(',') time = line[0] hour = line[1]