minor comments

This commit is contained in:
msramalho
2023-01-09 22:24:44 +00:00
parent 1cdc006b27
commit aac16fa8c2
2 changed files with 2 additions and 1 deletions

View File

@@ -91,4 +91,5 @@ class GsheetsDb(Database):
def _retrieve_gsheet(self, item: Metadata) -> Tuple[GWorksheet, int]:
gw: GWorksheet = item.get("gsheet").get("worksheet")
row: int = item.get("gsheet").get("row")
#TODO: to make gsheet_db less coupled with gsheet_feeder's "gsheet" parameter, this method could 1st try to fetch "gsheet" from item and, if missing, manage its own singleton - not needed for now
return gw, row

View File

@@ -28,4 +28,4 @@ class Step(ABC):
for sub in child.__subclasses__():
if sub.name == name:
return sub(config)
raise ClassFoundException(f"Unable to initialize STEP with {name=}")
raise ClassFoundException(f"Unable to initialize STEP with {name=}, check your configuration file/step names.")