[tor-commits] [nyx/master] Connection panel crashes when paused

atagar at torproject.org atagar at torproject.org
Thu Oct 20 17:49:16 UTC 2016


commit acf9bee61c37c526c2a0fa98aa76ea2d962b9375
Author: Damian Johnson <atagar at torproject.org>
Date:   Thu Oct 20 10:10:19 2016 -0700

    Connection panel crashes when paused
    
    Simple issue...
    
        File "/home/atagar/Desktop/nyx/nyx/panel/__init__.py", line 176, in redraw
          self._last_draw_size = nyx.curses.draw(self._draw, top = self._top, height = self.get_height(), draw_if_resized = draw_dimension)
        File "/home/atagar/Desktop/nyx/nyx/curses.py", line 714, in draw
          func(_Subwindow(subwindow_width, subwindow_height, curses_subwindow))
        File "/home/atagar/Desktop/nyx/nyx/panel/connection.py", line 434, in _draw
          current_time = self._pause_time()
      TypeError: 'float' object is not callable
---
 nyx/panel/connection.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nyx/panel/connection.py b/nyx/panel/connection.py
index d59293d..f8b41ee 100644
--- a/nyx/panel/connection.py
+++ b/nyx/panel/connection.py
@@ -431,7 +431,7 @@ class ConnectionPanel(nyx.panel.DaemonPanel):
     selected, scroll = self._scroller.selection(lines, subwindow.height - details_offset - 1)
 
     if interface.is_paused():
-      current_time = self._pause_time()
+      current_time = self._pause_time
     elif not controller.is_alive():
       current_time = controller.connection_time()
     else:





More information about the tor-commits mailing list