From 0ac923d2455bd8840eb019414e9cb5c675e52a79 Mon Sep 17 00:00:00 2001 From: Bui Date: Mon, 25 Nov 2019 01:24:06 +0000 Subject: [PATCH] check existence of maker_id --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index b45f694..11c4b44 100644 --- a/app.py +++ b/app.py @@ -130,7 +130,7 @@ def route_api_songs(): maker = None if song[17] == 0: maker = 0 - elif song[17] > 0: + elif song[17] and song[17] > 0: maker = {'name': song[18], 'url': song[19], 'id': song[17]} songs_out.append({