[GTK3] Fix ImportError has no attribute message
Python 3 exception objects now use `msg` but casting with `str()` is better.
This commit is contained in:
parent
bc6bc017cb
commit
9f113eab23
|
@ -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.'
|
||||
|
|
Loading…
Reference in New Issue