Becky - it seems there's an extra space character at the end of this line:
$if page.d.get('reviews'):
My guess is that removing it should help. Or, you could try replacing the line altogether with this:
$if page.d.get('reviews') and len(page.d.reviews) > 0:
...I think it should help.
Becky - it seems there's an extra space character at the end of this line:
$if page.d. get('reviews' ):
My guess is that removing it should help. Or, you could try replacing the line altogether with this:
$if page.d. get('reviews' ) and len(page.d.reviews) > 0:
...I think it should help.