mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
[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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue