parent
ce0b9a7ccd
commit
fb20033900
|
@ -70,9 +70,13 @@ class MatrixModule(BotModule):
|
||||||
primary = None
|
primary = None
|
||||||
fallback = None
|
fallback = None
|
||||||
|
|
||||||
|
pods = res.get('pod')
|
||||||
|
if not pods:
|
||||||
|
return (('<em>(data not available)</em>', '(data not available)'), ) * 2
|
||||||
|
|
||||||
# workaround for bug(?) in upstream wa package
|
# workaround for bug(?) in upstream wa package
|
||||||
if hasattr(res['pod'], 'get'):
|
if hasattr(pods, 'get'):
|
||||||
res['pod'] = [res['pod']]
|
pods = [pods]
|
||||||
for pod in res['pod']:
|
for pod in res['pod']:
|
||||||
pod_htmls = []
|
pod_htmls = []
|
||||||
pod_texts = []
|
pod_texts = []
|
||||||
|
|
Loading…
Reference in New Issue