Update __init__.py

This commit is contained in:
Aayush Goel
2023-10-10 18:08:07 +05:30
parent bc165331db
commit 23ecb248a5

View File

@@ -209,7 +209,6 @@ def translate_com_feature(com_name: str, com_type: str) -> ceng.Or:
CD = Path(__file__).resolve().parent.parent.parent
com_db_path = CD / VALID_COM_TYPES[com_type]["db_path"]
logger.error(f"Path {CD} and {com_db_path} exits")
if not com_db_path.exists():
logger.error("Using COM %s database '%s', but it doesn't exist", com_type, com_db_path)
raise IOError(f"COM database path '{com_db_path}' does not exist or cannot be accessed")