Opened 15 months ago

Closed 14 months ago

Last modified 14 months ago

#3582 closed bug (Fixed)

Console-UI prints deferred-object after commands

Reported by: mhertz Owned by:
Priority: minor Milestone: 2.1.2
Component: Console UI Version: develop
Keywords: Cc:

Description

As title, Console-UI always prints deferred object after every non-interactive command e.g.:

<Deferred at 0x7fdef49b2770 current result: None>

I narrowed culprit down to this commit: https://github.com/deluge-torrent/deluge/commit/ece31cf3cfb2ae277194f82bf35b45ea848f69c4, so started happening from release v2.10.

Meanwhile I posted on forum to just change line 16 of e.g. '/usr/lib/python3.10/site-packages/deluge/ui/console/init.py' from:

    return Console().start()

To:

    Console().start()

Thanks in advance!

Change History (4)

comment:1 Changed 15 months ago by DjLegolas

I was sure I already added a fix for this one...

Anyway, PR: https://github.com/deluge-torrent/deluge/pull/408

comment:2 Changed 15 months ago by mhertz

Appreciate you as always DjLegolas?, thanks alot! :)

comment:3 Changed 14 months ago by Cas

  • Resolution set to Fixed
  • Status changed from new to closed

Thanks Dj, needed to modify patch with workaround so tests still run.

There is a lot more refactoring required to simplify the tests and cleanup console code.

comment:4 Changed 14 months ago by Cas

  • Milestone changed from needs verified to 2.1.2
Note: See TracTickets for help on using tickets.