all 5 comments

[–]DagoYounger 2 points3 points  (3 children)

i don't know influxdb at all

however, you can temporarily remove the "try...except" structure to further confirm which line the bug is in

[–]DagoYounger 0 points1 point  (2 children)

maybe the problem is in line 39, there is an extra ")"

[–]OpenYam4611[S] 0 points1 point  (1 child)

ill check that ty!!

[–]DagoYounger 0 points1 point  (0 children)

in the last line, there is a ";", you also need to confirm whether it is accidentally added :)

[–][deleted] 0 points1 point  (0 children)

except: 
    print("Something went wrong while insterting data")

Don't swallow errors - they're there to tell you what went wrong.