mirror of https://github.com/CIRCL/lookyloo
chg: avoid issue if ipasnhistory is down, improve IDNA rendering
parent
110815778f
commit
1b987c38b7
|
@ -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)
|
||||
|
|
|
@ -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() }}
|
||||
|
|
Loading…
Reference in New Issue