Don't catch all exceptions.  At the very least, use "except Exception:"  Also, it looks like the exception you're anticipating is from the get_data_for_location line, so it would be better to narrow your "try" clause to just that statement.