qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
28.19k stars 3.97k forks source link

Please make nova2.py more verbose #6553

Open ArionMiles opened 7 years ago

ArionMiles commented 7 years ago

I recently made a new search plugin and I have to say, it's a pain in the ass since testing the plugin is very difficult when the nova2.py script silently handles all exceptions & errors without printing anything.

Pireo commented 7 years ago

I can't install the plugin regularly.

ArionMiles commented 7 years ago

@Piero, what's the issue?

Pireo commented 7 years ago

When I try to install it, by weblink or local file, it says "impossible to install, the plugin is not supported".

ArionMiles commented 7 years ago

@Pireo can you please create a issue ticket for this on the plugin page? We'll discuss this there.

dwilbanks commented 7 years ago

@ArionMiles , I've had similar issues, however perhaps not the same. If there are errors in my python code, those errors are not exposed in any way that I can know about them.

I'd like to see any errors generated by search engine dropped into the log. Search engine should be able to throw exceptions which are view able somewhere.

ngosang commented 6 years ago

Related to #4717

FranciscoPombal commented 4 years ago

Closing as Python 2/nova2 is no longer supported.

ngosang commented 4 years ago

@FranciscoPombal nova2.py is used in Python3 => https://github.com/qbittorrent/qBittorrent/blob/master/src/searchengine/nova3/nova2.py I want this feature too but it can't be implemented without changes in C++ code. The Python part is easy, just to print the exception to stderr => https://github.com/qbittorrent/qBittorrent/blob/master/src/searchengine/nova3/nova2.py#L80 We have to recover the stderr messages and the Python exit code in C++ to show a messagebox or add log traces...