Opened 15 years ago

Closed 15 years ago

#978 closed bug (Fixed)

Blocklist error message ''ValueError: time data" in download_blocklist_thread

Reported by: tim.kornhammar@gmail.com Owned by: John Garland
Priority: major Milestone:
Component: Unknown Version: 1.2.0_dev
Keywords: Cc:

Description

Just discovered this with svn r5427:

Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 497, in __bootstrap
    self.__bootstrap_inner()
  File "/usr/lib/python2.6/threading.py", line 525, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/threading.py", line 477, in run
    self.__target(*self.__args, **self.__kwargs)
--- <exception caught here> ---
  File "/usr/lib/python2.6/dist-packages/twisted/python/threadpool.py", line 210, in _worker
    result = context.call(ctx, function, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/twisted/python/context.py", line 59, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/usr/lib/python2.6/dist-packages/twisted/python/context.py", line 37, in callWithContext
    return func(*args,**kw)
  File "/usr/share/python-support/deluge-core/deluge/plugins/Blocklist-1.0-py2.6.egg/blocklist/core.py", line 254, in download_blocklist_thread
    
  File "/usr/lib/python2.6/_strptime.py", line 325, in _strptime
    (data_string, format))
exceptions.ValueError: time data 'Sun, 01 Mar 2009 02:02:04 GMT' does not match format '%a, %d %b %Y %H:%M:%S GMT'

Change History (4)

comment:1 by John Garland, 15 years ago

Owner: changed from andar to John Garland
Status: newaccepted

blocklist is not working in trunk, however what url were you using when you got this error?

comment:2 by John Garland, 15 years ago

what's confusing is that the format string DOES match the time data ???

comment:3 by tim.kornhammar@gmail.com, 15 years ago

Yes, I thought it matched too.

Will return with the URL, currently the "settings" window does not open so I will report that issue first.

comment:4 by John Garland, 15 years ago

Resolution: fixed
Status: acceptedclosed

latest blocklist plugin no longer uses this hack.

Note: See TracTickets for help on using tickets.