Your message dated Sun, 24 Feb 2008 13:12:58 -0800
with message-id <[EMAIL PROTECTED]>
and subject line Re: #464711: deluge-torrent: Fails to start because
BlocklistImport raises unhandled exception if load_after_days isn't set
has caused the Debian Bug report #464711,
regarding Fails to start because BlocklistImport raises unhandled exception if
load_after_days isn't set
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)
--
464711: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=464711
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: deluge-torrent
Version: 0.5.8.3-1
When I try to start deluge, it fails with the following output:
checking for ubuntu...
no existing Deluge session
Starting new Deluge session...
deluge_core; using libtorrent 0.13.0.0. Compiled with NDEBUG.
Applying preferences
Pickling state...
Scanning plugin dir /usr/share/deluge/plugins
Initialising plugin Scheduler
Initialising plugin WebUi
Initialising plugin TorrentNotification
Initialising plugin Search
Initialising plugin NetworkGraph
Initialising plugin TorrentFiles
Initialising plugin WebSeed
Initialising plugin FlexRSS
Initialising plugin DesiredRatio
Initialising plugin SpeedLimiter
Initialising plugin TorrentPeers
Initialising plugin MoveTorrent
Initialising plugin NetworkHealth
Initialising plugin EventLogging
Initialising plugin TorrentCreator
Initialising plugin BlocklistImport
Applying preferences
Starting DHT...
Showing window
Found blocklist plugin ...
Traceback (most recent call last):
File "/usr/bin/deluge", line 145, in ?
start_deluge()
File "/usr/bin/deluge", line 129, in start_deluge
interface.start(get_cmd_line_torrents())
File "/var/lib/python-support/python2.4/deluge/interface.py", line
1038, in start
self.load_plugins()
File "/var/lib/python-support/python2.4/deluge/interface.py", line
1092, in load_plugins
self.plugins.enable_plugin("Blocklist Importer")
File "/var/lib/python-support/python2.4/deluge/plugins.py", line 80,
in enable_plugin
self.enabled_plugins[name] = plugin.enable(self.core,
self.interface)
File "/usr/share/deluge/plugins/BlocklistImport/__init__.py", line
29, in enable
return BlocklistImport(path, core, interface)
File "/usr/share/deluge/plugins/BlocklistImport/__init__.py", line
72, in __init__
self.loadlist(fetch=self.config.get('load_after_days'))
File "/usr/share/deluge/plugins/BlocklistImport/__init__.py", line
99, in loadlist
if now_timestamp >= (list_timestamp + (86400 * days_update)):
TypeError: unsupported operand type(s) for *: 'int' and 'NoneType'
The attach patch fixes this problem by checking whether the value is
set using has_key and, if not, setting it to -1 by default.
--
Matt
diff -ru deluge-torrent-0.5.8.3.orig/plugins/BlocklistImport/__init__.py
deluge-torrent-0.5.8.3/plugins/BlocklistImport/__init__.py
--- deluge-torrent-0.5.8.3.orig/plugins/BlocklistImport/__init__.py
2008-02-08 07:28:43.000000000 -0800
+++ deluge-torrent-0.5.8.3/plugins/BlocklistImport/__init__.py 2008-02-08
07:29:59.000000000 -0800
@@ -63,9 +63,7 @@
global_defaults=False)
self.config.load()
- try:
- load_after_days = self.config.get("load_after_days")
- except:
+ if not self.config.has_key('load_after_days'):
self.config.set("load_after_days", -1)
if self.config.has_key('url'):
--- End Message ---
--- Begin Message ---
Version: 0.5.8.3-1
On Sun, Feb 24, 2008 at 09:23:41PM +0100, "Adam Cécile (Le_Vert)" wrote:
> The bug you reported really looks like from coming of an old
> configuration file with a newer deluge-torrent software.
>
> If you still have your $HOME/.config/deluge, could you please try to
> revert your patch, rename $HOME/.config/deluge to something else and
> start deluge again?
I can't reproduce the bug anymore, sorry.
--
Matt
--- End Message ---