adding OSError

This commit is contained in:
Андрей Владимирович 2016-02-18 15:06:48 +03:00
parent 74357985bc
commit 69b1dd32a4

View file

@ -31,6 +31,8 @@ class Tox(object):
self.libtoxcore = CDLL(temp + 'libtoxcore.so') self.libtoxcore = CDLL(temp + 'libtoxcore.so')
elif system() == 'Windows': elif system() == 'Windows':
self.libtoxcore = CDLL('libs/libtox.dll') self.libtoxcore = CDLL('libs/libtox.dll')
else:
raise OSError('Unknown system.')
# load saved data # load saved data
if path is None: if path is None: