mirror of https://gitlab.com/bashrc2/epicyon
Check that variable exists
parent
39401222fe
commit
5a42282475
|
@ -269,9 +269,11 @@ def _html_newswire(base_dir: str, newswire: {}, nickname: str, moderator: bool,
|
||||||
if len(item) > 8:
|
if len(item) > 8:
|
||||||
# change the link url to a podcast episode screen
|
# change the link url to a podcast episode screen
|
||||||
podcast_properties = item[8]
|
podcast_properties = item[8]
|
||||||
if podcast_properties.get('persons') and \
|
if podcast_properties:
|
||||||
podcast_properties.get('image'):
|
if podcast_properties.get('persons') and \
|
||||||
link_url = '/users/' + nickname + '/?podepisode=' + date_str
|
podcast_properties.get('image'):
|
||||||
|
link_url = \
|
||||||
|
'/users/' + nickname + '/?podepisode=' + date_str
|
||||||
|
|
||||||
html_str += separator_str
|
html_str += separator_str
|
||||||
if moderated_item and 'vote:' + nickname in item[2]:
|
if moderated_item and 'vote:' + nickname in item[2]:
|
||||||
|
|
Loading…
Reference in New Issue