fix python error when no rows in query
1 file changed