Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
mjpost committed Feb 9, 2025
1 parent a855af8 commit e8ea1a8
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions bin/process_bulk_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,11 @@ def process_metadata_issues(
# Parse metadata changes from issue
try:
json_block = self._parse_metadata_changes(issue.body)
except json.decoder.JSONDecodeError as e
print(f"Failed to parse JSON block in #{issue.number}: {e}", file=sys.stderr)
except json.decoder.JSONDecodeError as e:
print(
f"Failed to parse JSON block in #{issue.number}: {e}",
file=sys.stderr,
)
json_block = None

if not json_block:
Expand Down Expand Up @@ -270,7 +273,10 @@ def process_metadata_issues(
continue
else:
if verbose:
print(f"-> Skipping #{issue.number} (no JSON block)", file=sys.stderr)
print(
f"-> Skipping #{issue.number} (no JSON block)",
file=sys.stderr,
)
continue

self.stats["relevant_issues"] += 1
Expand All @@ -297,7 +303,10 @@ def process_metadata_issues(
xml_repo_path, anthology_id, json_block
)
except Exception as e:
print(f"Failed to apply changes to #{issue.number}: {e}", file=sys.stderr)
print(
f"Failed to apply changes to #{issue.number}: {e}",
file=sys.stderr,
)
continue

if tree:
Expand Down

0 comments on commit e8ea1a8

Please sign in to comment.