adding OSError

This commit is contained in:
Андрей Владимирович 2016-02-18 15:06:48 +03:00
parent 74357985bc
commit 69b1dd32a4
1 changed files with 2 additions and 0 deletions

View File

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