forked from nathanwoodburn/firewalletbrowser
feat: Add more error catching for plugins
This means that people could make completely broken plugins and still have a working wallet
This commit is contained in:
@@ -272,6 +272,11 @@ def plugin_output(outputs, returns):
|
||||
html += f'<h4 class="card-title">{returns[returnOutput]["name"]}</h4>'
|
||||
|
||||
# Get the output
|
||||
if returnOutput not in outputs:
|
||||
html += f'<p>No output</p>'
|
||||
html += f'</div>'
|
||||
html += f'</div>'
|
||||
continue
|
||||
output = outputs[returnOutput]
|
||||
if returns[returnOutput]["type"] == "list":
|
||||
html += f'<ul>'
|
||||
|
||||
Reference in New Issue
Block a user