Opened 4 years ago

Last modified 5 months ago

#3378 new bug

Unhandled Traceback duing console exection

Reported by: digifuzzy Owned by:
Priority: major Milestone: 2.1.1
Component: Console UI Version: 2.0.3
Keywords: Cc:

Description

System - Funtoo(gentoo derivative) x86_64 w/ Python 3.7.6 Deluge - 2.0.3 (git latest)

Executing deluge-console, trying to enter data in the Add Host dialog. Console will abort producing traceback shown below. Examining the source code, it appears that the InputPopup class doesn't have a current_selection method and is the point of failure. I am unsure how to patch this problem.

Traceback:

Unhandled error in Deferred:

Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/twisted/internet/defer.py", line 654, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib/python3.7/site-packages/deluge/ui/client.py", line 408, in __on_connect_fail
    self.daemon_info_deferred.errback(reason)
  File "/usr/lib/python3.7/site-packages/twisted/internet/defer.py", line 501, in errback
    self._startRunCallbacks(fail)
  File "/usr/lib/python3.7/site-packages/twisted/internet/defer.py", line 568, in _startRunCallbacks
    self._runCallbacks()
--- <exception caught here> ---
  File "/usr/lib/python3.7/site-packages/twisted/internet/defer.py", line 654, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib/python3.7/site-packages/deluge/ui/console/modes/connectionmanager.py", line 78, in on_host_status
    self.update_select_host_popup()
  File "/usr/lib/python3.7/site-packages/deluge/ui/console/modes/connectionmanager.py", line 40, in update_select_host_popup
    selected_index = self.popup.current_selection() if self.popup else None
builtins.AttributeError: 'InputPopup' object has no attribute 'current_selection'

Change History (4)

comment:1 by Calum, 3 years ago

Milestone: 2.1.0

comment:2 by Calum, 3 years ago

This might be fixed with a recent console commit but need to double-check

comment:3 by Calum, 2 years ago

Milestone: 2.1.02.1.1

Ticket retargeted after milestone closed

comment:4 by DjLegolas, 5 months ago

In change [66b5a2fc] a validation for self.popup type was added.
This ticket can be closed.

Note: See TracTickets for help on using tickets.