Browse Source

Fix the misspelling of "except"

Change-Id: I85a40e078d2f5ec017d2aebedf79568de4163e44
changes/82/628382/1
lijunjie 2 years ago
parent
commit
ecdb9ad345
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/bin/shipyard_airflow/shipyard_airflow/db/airflow_db.py
  2. +1
    -1
      src/bin/shipyard_airflow/shipyard_airflow/errors.py

+ 1
- 1
src/bin/shipyard_airflow/shipyard_airflow/db/airflow_db.py View File

@ -246,7 +246,7 @@ class AirflowDbAccess(DbAccess):
def check_dag_run_state(self, dag_id, execution_date, expected_state):
"""
Examines a dag_run for state. Throws execption if it's not right
Examines a dag_run for state. Throws exception if it's not right
"""
dag_run_list = self.get_dag_runs_by_id(
dag_id=dag_id, execution_date=execution_date)


+ 1
- 1
src/bin/shipyard_airflow/shipyard_airflow/errors.py View File

@ -127,7 +127,7 @@ def default_error_serializer(req, resp, exception):
def default_exception_handler(ex, req, resp, params):
"""
Catch-all execption handler for standardized output.
Catch-all exception handler for standardized output.
If this is a standard falcon HTTPError, rethrow it for handling
"""
if isinstance(ex, falcon.HTTPError):


Loading…
Cancel
Save