Skip to content

Fix Python 2 except syntax breaking Python 3 parse#114

Merged
jirhiker merged 1 commit into
mainfrom
fix/py3-except-syntax
Jul 8, 2026
Merged

Fix Python 2 except syntax breaking Python 3 parse#114
jirhiker merged 1 commit into
mainfrom
fix/py3-except-syntax

Conversation

@jirhiker

@jirhiker jirhiker commented Jul 8, 2026

Copy link
Copy Markdown
Member

Problem

Three Python-2-style except A, B: clauses are SyntaxError under Python 3, introduced by 545d3ab ("Dedup connectors and cut pipeline compute time"). They break import/collection of core modules (backend/unifier.py won't parse), failing CI for every branch and the whole backend test suite.

Fix

Parenthesize each exception tuple:

  1. backend/unifier.py:151except USGSRateLimitError, PartialOrNoDataError:except (USGSRateLimitError, PartialOrNoDataError):
  2. backend/persisters/ogc_features.py:139except TypeError, ValueError:except (TypeError, ValueError):
  3. backend/well_correlation.py:115except TypeError, ValueError:except (TypeError, ValueError):

Verification

  • python -m py_compile passes on all three files
  • python -c "import backend.unifier" succeeds in the .venv

Should merge before #112/#113 so their CI can pass.

🤖 Generated with Claude Code

Three `except A, B:` clauses were SyntaxErrors under Python 3,
introduced by 545d3ab. They broke import/collection of core
modules (backend/unifier.py wouldn't parse), failing CI and the
whole backend test suite. Parenthesize each exception tuple.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

Your pull request is automatically being deployed to Dagster Cloud.

Location Status Link Updated
die-orchestration View in Cloud Jul 08, 2026 at 09:35 PM (UTC)

@jirhiker
jirhiker merged commit d41d10d into main Jul 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant