From 9f113eab230fc59b3c84f8b99a4a3bb2a1b36175 Mon Sep 17 00:00:00 2001 From: hugosenari Date: Mon, 20 Aug 2018 01:29:21 -0300 Subject: [PATCH] [GTK3] Fix ImportError has no attribute message Python 3 exception objects now use `msg` but casting with `str()` is better. --- deluge/ui/gtk3/gtkui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/gtk3/gtkui.py b/deluge/ui/gtk3/gtkui.py index 8f872e94b..b8c9a526a 100644 --- a/deluge/ui/gtk3/gtkui.py +++ b/deluge/ui/gtk3/gtkui.py @@ -331,7 +331,7 @@ class GtkUI(object): 'To use Standalone mode, stop local daemon and restart Deluge.' ) except ImportError as ex: - if 'No module named libtorrent' in ex.message: + if 'No module named libtorrent' in str(ex): err_msg = _( 'Only Thin Client mode is available because libtorrent is not installed.\n' 'To use Standalone mode, please install libtorrent package.'