replaced try/ecept with explicit check of domain for asin