summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDjLegolas <djlegolas@protonmail.com>2022-11-07 01:05:55 +0200
committerCalum Lind <calumlind+deluge@gmail.com>2022-12-01 12:52:00 +0000
commit3565a9a817a205de912bd682b5f91428856f9607 (patch)
tree03f0e0f9bb6c317b007678a55e556e5c78f74d29
parentb3d1fd79a8fd138f4f13d33401d4a0d27b8e181c (diff)
downloaddeluge-3565a9a817a205de912bd682b5f91428856f9607.tar.gz
deluge-3565a9a817a205de912bd682b5f91428856f9607.tar.bz2
deluge-3565a9a817a205de912bd682b5f91428856f9607.zip
[WebUI] Fix `TypeError` in DelugeWeb constructor
In `twisted 22.10`, a check new for passing the `path` variable as `bytes` in the `putChild` method. We were enforcing this on every other place but the `__init__` of `DelugeWeb` itself. Ref: https://github.com/twisted/twisted/pull/11718 Closes: https://dev.deluge-torrent.org/ticket/3566
-rw-r--r--deluge/ui/web/server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/deluge/ui/web/server.py b/deluge/ui/web/server.py
index f391a78d2..e47a5b25a 100644
--- a/deluge/ui/web/server.py
+++ b/deluge/ui/web/server.py
@@ -682,7 +682,7 @@ class DelugeWeb(component.Component):
if self.base != '/':
# Strip away slashes and serve on the base path as well as root path
- self.top_level.putChild(self.base.strip('/'), self.top_level)
+ self.top_level.putChild(self.base.strip('/').encode(), self.top_level)
setup_translation()