Thanks to spacezorro on Github for suggesting this. The quiet tag suppresses the error messages if no key is present.