Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
obar1 committed Sep 7, 2024
1 parent 31c075d commit c13d163
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion zero_to_one_hundred/configs/a_config_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class LegendIcons:
def __init__(self, persist_fs: APersistFS):
self.map_yaml_path = os.getenv(AConfigMap.MAP_YAML_PATH)
if self.map_yaml_path is None:
raise SomeError(f"map_yaml_path {self.map_yaml_path} is not valid")
raise SomeError(f"map_yaml_path {self.map_yaml_path} is not valid, please set it in the env")
self.persist_fs = persist_fs

def __repr__(self):
Expand Down
8 changes: 7 additions & 1 deletion zero_to_one_hundred/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import traceback
from typing import List

from zero_to_one_hundred.exceptions.errors import SomeError
from zero_to_one_hundred.factories.a_factory import AFactory
from zero_to_one_hundred.factories.a_factory_provider import AFactoryProvider

Expand All @@ -19,7 +20,12 @@ def run_core(argv: List[str], factory_provider: AFactoryProvider):
try:
factory = factory_provider.provide()
[processor.process() for processor in factory.get_processor(argv) if processor]

except SomeError as se:
print(se)
return
except FileNotFoundError as se:
print(se)
return
except Exception as e:
print(e)
traceback.print_exc()
Expand Down

0 comments on commit c13d163

Please sign in to comment.