Commit 0ac923d2 authored by Bui's avatar Bui

check existence of maker_id

parent 8cc1b940
......@@ -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({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment