Skip to content

Commit

Permalink
fix: Do not halt when if a folder is in descriptor folder (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
loganripplinger authored Dec 9, 2019
1 parent ad3ee0e commit 76130c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data_resource_api/app/data_model_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def monitor_data_models(self):
if os.path.isdir(os.path.join(schema_dir, schema)):
self.logger.exception(
f"Cannot open a nested schema directory '{schema}'")
return
continue

try:
with open(os.path.join(schema_dir, schema), 'r') as fh:
Expand Down
2 changes: 1 addition & 1 deletion data_resource_api/app/data_resource_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def monitor_data_resources(self):
schema_file = os.path.join(schema_dir, schema)

if not os.path.isfile(schema_file):
return
continue

with open(os.path.join(schema_dir, schema), 'r') as fh:
schema_dict = json.load(fh)
Expand Down

0 comments on commit 76130c4

Please sign in to comment.