Bad web certificate crashes app when using MyConnection.SendSync("GET",

My app uses MyConnection.SendSync(“GET”, to get the version number of the app to check for updates upon launch. It works fine, but on occasion my web host has weird certificate issues. This causes a hard exception error.

s = MyConnection.SendSync("GET","https://mycompany.com/download/appversion.text",30)
currentversion = val(s)

How can I prevent this exception error? Thanks

Place it within:

Try
s = MyConnection.SendSync("GET","https://mycompany.com/download/appversion.text",30)
currentversion = val(s)

Catch err
…
End Try
1 Like