Skip to content
Snippets Groups Projects
Commit 1d2683e0 authored by Damian Johnson's avatar Damian Johnson
Browse files

Exit stats dialog crashed if no data was available

Showing the exit stats dialog (pressing 'e' on the connection page) stacktraced
if no exit stats were available...

  https://trac.torproject.org/projects/tor/ticket/25801
parent d46950c6
No related branches found
No related tags found
No related merge requests found
......@@ -391,7 +391,7 @@ class ConnectionPanel(nyx.panel.DaemonPanel):
def _show_exiting_port_usage():
counts = {}
key_width = max(map(len, self._exit_port_usage.keys()))
key_width = max(map(len, self._exit_port_usage.keys())) if self._exit_port_usage else 0
for k, v in self._exit_port_usage.items():
usage = connection.port_usage(k)
......
......@@ -83,6 +83,7 @@
<li><span class="component">Connections</span>
<ul>
<li>Geoip information unavailable for inbound connections</li>
<li>Dialog showing exit statistics crashed when no data was available (:trac:`25801`)</li>
</ul>
</li>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment