Skip to content

Commit a804637

Browse files
committed
Fix initialization of weights_precision, otherwise the outputs page can not be displayed when the variable is undefined
1 parent 85f1cc8 commit a804637

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

openquake/server/views.py

+1
Original file line numberDiff line numberDiff line change
@@ -1505,6 +1505,7 @@ def web_engine_get_outputs_impact(request, calc_id):
15051505
losses = (f'The risk can not be computed since the hazard is too low:'
15061506
f' the maximum value of the average GMF is {max_avg_gmf:.5f}')
15071507
losses_header = None
1508+
weights_precision = None
15081509
else:
15091510
losses_header = [
15101511
f'{field}<br><i>{FIELD_DESCRIPTION[field]}</i>'

0 commit comments

Comments
 (0)