chocolatey / package-validator

Windows service to validate packages conform to package standards
Apache License 2.0
31 stars 29 forks source link

(GH-204) Prevent exception from bubbling up #206

Closed gep13 closed 4 years ago

gep13 commented 4 years ago

When a non http/https URL is passed into the url_is_valid function, an exception is thrown when the WebRequest.Create is called, which wasn't then caught in the catch, since it was looking for a WebException. Switch to putting everything in the try, and catch a generic exception, so that nothing bubles up.

Fixes #204