Skip to content

Commit

Permalink
handle merge writing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pnadolny13 committed Aug 30, 2023
1 parent acb6a82 commit 00f6a64
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions hub_utils/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,12 +395,15 @@ def merge_metadata(
new_settings_group_validation,
new_capabilities,
) = MeltanoUtil._parse_sdk_about_settings(new_extract_json)
util.merge_and_update(
existing_def,
new_extract_json.get("name"),
util.get_plugin_type_from_suffix(suffix),
util.get_plugin_variant_from_suffix(suffix),
new_settings,
new_capabilities,
new_settings_group_validation,
)
try:
util.merge_and_update(
existing_def,
new_extract_json.get("name"),
util.get_plugin_type_from_suffix(suffix),
util.get_plugin_variant_from_suffix(suffix),
new_settings,
new_capabilities,
new_settings_group_validation,
)
except Exception as e:
print(f"Error merging {suffix}: {e}")

0 comments on commit 00f6a64

Please sign in to comment.