removed try/except in favor of additional if clause.