#3329: builtins.KeyError: 'label/label.js
-----------------------+----------------------------
  Reporter:  jools772  |      Owner:
      Type:  bug       |     Status:  new
  Priority:  minor     |  Milestone:  needs verified
 Component:  Web UI    |    Version:  2.0.3
Resolution:            |   Keywords:
-----------------------+----------------------------

Comment (by jools772):

 Here's the error written out since the pastebin expired:

 web.Server Traceback (most recent call last):
 builtins.KeyError: 'label/label.js'
 /usr/lib/python3/dist-packages/twisted/web/server.py:199 in process
 198                    self._encoder = encoder
 199            self.render(resrc)
 200        except:
 /usr/lib/python3/dist-packages/twisted/web/server.py:259 in render
 258        try:
 259            body = resrc.render(self)
 260        except UnsupportedMethod as e:
 /usr/lib/python3/dist-packages/deluge/ui/web/server.py:629 in render
 628
 629        scripts = component.get('Scripts').get_scripts(script_type)
 630        scripts.insert(0, 'gettext.js')
 /usr/lib/python3/dist-packages/deluge/ui/web/server.py:371 in get_scripts
 370            # A folder resource is enclosed in a tuple.
 371            if isinstance(_scripts[path], tuple):
 372                filepath, recurse = _scripts[path]
 builtins.KeyError: 'label/label.js'

 The error is pretty obvious: the path 'label/label.js' isn't found in the
 list '_scripts'. See here:

 https://git.deluge-torrent.org/deluge/tree/deluge/ui/web/server.py#n371

 The fix is to add one check:

 if path in _scripts:

 Would you please do this. I get the error quite frequently and it crashes
 the whole deluged daemon because of this.

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3329#comment:3>
Deluge <https://deluge-torrent.org/>
Deluge Project

-- 
You received this message because you are subscribed to the Google Groups 
"Deluge Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/deluge-dev/062.5387b082ef5321a412636033a14f1221%40deluge-torrent.org.

Reply via email to