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

This commit is contained in:
Linhe Huo 2021-08-24 17:57:05 +08:00 committed by GitHub
parent 48043bd4f8
commit 3a5e4b04aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,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')
class CTaosInterface(object):