Add try-except-else statement for request in getMatches method.