[TD-1750]<fix> add python2 connectionerror
This commit is contained in:
parent
fa7b5f047c
commit
7c6609e6c2
|
@ -225,6 +225,7 @@ class CTaosInterface(object):
|
|||
|
||||
if connection.value == None:
|
||||
print('connect to TDengine failed')
|
||||
raise ConnectionError("connect to TDengine failed")
|
||||
# sys.exit(1)
|
||||
else:
|
||||
print('connect to TDengine success')
|
||||
|
|
Loading…
Reference in New Issue