this might be a good use case for try/else since clearly this is trapping only a very specific error in one function in the try block