chg: avoid issue if ipasnhistory is down, improve IDNA rendering

pull/831/head
Raphaël Vinot 2023-11-10 21:19:22 +01:00
parent 110815778f
commit 1b987c38b7
2 changed files with 3 additions and 2 deletions

View File

@ -562,7 +562,8 @@ class CapturesIndex(Mapping):
try:
self.ipasnhistory.mass_cache(ips)
except Exception as e:
logger.warning(f'Unable to submit IPs to IPASNHistory: {e}')
logger.warning(f'Unable to submit IPs to IPASNHistory, disabling: {e}')
self.ipasnhistory = None
else:
time.sleep(2)
ipasn_responses = self.ipasnhistory.mass_query(ips)

View File

@ -11,7 +11,7 @@
{% from "macros.html" import context_form %}
{% from "macros.html" import pandora_submit %}
{% block title %}Details for {{ hostnode.name }} {% endblock %}
{% block title %}Details for {% if hostnode.idna %}{{hostnode.idna}} {%else%} {{ hostnode.name }} {%endif%}{% endblock %}
{% block scripts %}
{{ super() }}