summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCalum Lind <calumlind@gmail.com>2018-11-07 15:51:52 +0000
committerCalum Lind <calumlind@gmail.com>2018-11-07 15:52:26 +0000
commit89868cc944e96fc5b3cfcb026e946617e4bd2a7b (patch)
treed50485e857dd50211e3a41e59f9343001cde31d3
parent841cb889aae8ebbf73168d99d34764486f57b919 (diff)
downloaddeluge-89868cc944e96fc5b3cfcb026e946617e4bd2a7b.tar.gz
deluge-89868cc944e96fc5b3cfcb026e946617e4bd2a7b.tar.bz2
deluge-89868cc944e96fc5b3cfcb026e946617e4bd2a7b.zip
[GTK] Fix needing bytes with hashlib on Py3
-rw-r--r--deluge/ui/gtk3/mainwindow.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/deluge/ui/gtk3/mainwindow.py b/deluge/ui/gtk3/mainwindow.py
index 8200d9535..3ac8e066c 100644
--- a/deluge/ui/gtk3/mainwindow.py
+++ b/deluge/ui/gtk3/mainwindow.py
@@ -242,7 +242,7 @@ class MainWindow(component.Component):
if response_id == Gtk.ResponseType.OK:
if (
self.config['tray_password']
- == sha(dialog.get_password()).hexdigest()
+ == sha(decode_bytes(dialog.get_password()).encode()).hexdigest()
):
quit_gtkui()