From 89868cc944e96fc5b3cfcb026e946617e4bd2a7b Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Wed, 7 Nov 2018 15:51:52 +0000 Subject: [PATCH] [GTK] Fix needing bytes with hashlib on Py3 --- deluge/ui/gtk3/mainwindow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()