false import fix
parent
3ca766bf0e
commit
539383d14f
|
@ -129,7 +129,10 @@ class Libtorrent:
|
|||
self.platform = get_platform()
|
||||
try:
|
||||
import libtorrent
|
||||
except:
|
||||
|
||||
print '[script.module.libtorrent]: Imported libtorrent v' + libtorrent.version + ' from system'
|
||||
except Exception, e:
|
||||
print '[script.module.libtorrent]: Error importing from system. Exception: ' + str(e)
|
||||
import python_libtorrent as libtorrent
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue