Skip to content

Commit

Permalink
update config_manager.py
Browse files Browse the repository at this point in the history
  • Loading branch information
benmalef committed Feb 11, 2025
1 parent afd63de commit dae6c1e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions GANDLF/config_manager.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# import logging
import traceback
from typing import Optional, Union
from pydantic import ValidationError
import yaml
Expand Down Expand Up @@ -53,14 +54,13 @@ def ConfigManager(
}
)
return parameters
# except Exception as e:
# ## todo: ensure logging captures assertion errors
# assert (
# False
# ), f"Config parsing failed: {config_file_path=}, {version_check_flag=}, Exception: {str(e)}, {traceback.format_exc()}"
# # logging.error(
# # f"gandlf config parsing failed: {config_file_path=}, {version_check_flag=}, Exception: {str(e)}, {traceback.format_exc()}"
# # )
# # raise
except ValidationError as exc:
print(exc.errors())
except Exception as e:
## todo: ensure logging captures assertion errors
assert (
False
), f"Config parsing failed: {config_file_path=}, {version_check_flag=}, Exception: {str(e)}, {traceback.format_exc()}"
# logging.error(
# f"gandlf config parsing failed: {config_file_path=}, {version_check_flag=}, Exception: {str(e)}, {traceback.format_exc()}"
# )
# raise

0 comments on commit dae6c1e

Please sign in to comment.