diff --git a/PIcontroller.py b/PIcontroller.py index 03163d3..6a06da7 100644 --- a/PIcontroller.py +++ b/PIcontroller.py @@ -15,6 +15,9 @@ def listfromAPI(message): if mess[0] == " ": queueList.append(mess[1:]) continue + if mess[-1] == ",": # get rid of random last comma + queueList.append(mess[1:]) + continue queueList.append(mess) return queueList