[TD-6313]<fix>: improve error handling if loading taos failed in python (#7550)

This commit is contained in:
Linhe Huo 2021-08-24 18:43:02 +08:00 committed by GitHub
parent 25a6abf054
commit 6e53e0a6ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ def _load_taos():
try:
return load_func[platform.system()]()
except:
sys.exit("unsupported platform to TDengine connector")
raise InterfaceError('unsupported platform or failed to load taos client library')
_libtaos = _load_taos()