added correct try block to suppress common error