Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def parse_config(working_path: Path) -> Config:
tbump_path = working_path / "tbump.toml"
try:
config = tbump.config.parse(tbump_path)
except IOError as io_error:
raise InvalidConfig(io_error=io_error)
except Exception as parse_error:
raise InvalidConfig(parse_error=parse_error)
return config
def parse_config(working_path: Path) -> Config:
tbump_path = working_path / "tbump.toml"
try:
config = tbump.config.parse(tbump_path)
except IOError as io_error:
raise InvalidConfig(io_error=io_error)
except Exception as parse_error:
raise InvalidConfig(parse_error=parse_error)
return config