Skip to content

Commit b04bfa9

Browse files
committed
Solar2: FIX exception not exists anymore
1 parent b192769 commit b04bfa9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

solar2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def send_boot():
136136
if influx.write("octopuslab", start_boot = 1):
137137
pass
138138
else:
139-
print("influx send_boot Exception: {0}".format(e))
139+
print("influx send_boot Error")
140140

141141

142142
def send_bmp():
@@ -148,7 +148,7 @@ def send_bmp():
148148
if influx.write("octopuslab", temperature = temp, pressure = press):
149149
errorcount = 0
150150
else:
151-
print("influx send_bme Exception: {0}".format(e))
151+
print("influx send_bme Error")
152152
reconect()
153153

154154

@@ -159,7 +159,7 @@ def send_solar(s20=0,s21=0):
159159
if influx.write("octopuslab", solar20 = s20, solar21 = s21):
160160
errorcount = 0
161161
else:
162-
print("influx send_solar Exception: {0}".format(e))
162+
print("influx send_solar Error")
163163
reconect()
164164

165165

0 commit comments

Comments
 (0)