[TD-6313]<fix>: improve error handling if loading taos failed in python (#7550)
This commit is contained in:
parent
25a6abf054
commit
6e53e0a6ba
|
@ -49,7 +49,7 @@ def _load_taos():
|
||||||
try:
|
try:
|
||||||
return load_func[platform.system()]()
|
return load_func[platform.system()]()
|
||||||
except:
|
except:
|
||||||
sys.exit("unsupported platform to TDengine connector")
|
raise InterfaceError('unsupported platform or failed to load taos client library')
|
||||||
|
|
||||||
|
|
||||||
_libtaos = _load_taos()
|
_libtaos = _load_taos()
|
||||||
|
|
Loading…
Reference in New Issue