summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlijunjie <lijunjie@cloudin.cn>2019-01-04 17:55:53 +0800
committerlijunjie <lijunjie@cloudin.cn>2019-01-04 17:55:53 +0800
commitecdb9ad345f6c668c772c4e65acaf3330bdd17a3 (patch)
tree8573fab9ee518941e054bbfe994290a147bcbe1b
parent4dd6b484d11e86ad51da733841b9ef137421d461 (diff)
Fix the misspelling of "except"
Notes
Notes (review): Code-Review+1: Evgeniy L <eli@mirantis.com> Code-Review+2: Scott Hussey <sthussey@att.com> Workflow+1: Scott Hussey <sthussey@att.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Fri, 04 Jan 2019 18:27:40 +0000 Reviewed-on: https://review.openstack.org/628382 Project: openstack/airship-shipyard Branch: refs/heads/master
-rw-r--r--src/bin/shipyard_airflow/shipyard_airflow/db/airflow_db.py2
-rw-r--r--src/bin/shipyard_airflow/shipyard_airflow/errors.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/shipyard_airflow/shipyard_airflow/db/airflow_db.py b/src/bin/shipyard_airflow/shipyard_airflow/db/airflow_db.py
index d0b357d..8cbb8d7 100644
--- a/src/bin/shipyard_airflow/shipyard_airflow/db/airflow_db.py
+++ b/src/bin/shipyard_airflow/shipyard_airflow/db/airflow_db.py
@@ -246,7 +246,7 @@ class AirflowDbAccess(DbAccess):
246 246
247 def check_dag_run_state(self, dag_id, execution_date, expected_state): 247 def check_dag_run_state(self, dag_id, execution_date, expected_state):
248 """ 248 """
249 Examines a dag_run for state. Throws execption if it's not right 249 Examines a dag_run for state. Throws exception if it's not right
250 """ 250 """
251 dag_run_list = self.get_dag_runs_by_id( 251 dag_run_list = self.get_dag_runs_by_id(
252 dag_id=dag_id, execution_date=execution_date) 252 dag_id=dag_id, execution_date=execution_date)
diff --git a/src/bin/shipyard_airflow/shipyard_airflow/errors.py b/src/bin/shipyard_airflow/shipyard_airflow/errors.py
index 85e90c3..906c9ea 100644
--- a/src/bin/shipyard_airflow/shipyard_airflow/errors.py
+++ b/src/bin/shipyard_airflow/shipyard_airflow/errors.py
@@ -127,7 +127,7 @@ def default_error_serializer(req, resp, exception):
127 127
128def default_exception_handler(ex, req, resp, params): 128def default_exception_handler(ex, req, resp, params):
129 """ 129 """
130 Catch-all execption handler for standardized output. 130 Catch-all exception handler for standardized output.
131 If this is a standard falcon HTTPError, rethrow it for handling 131 If this is a standard falcon HTTPError, rethrow it for handling
132 """ 132 """
133 if isinstance(ex, falcon.HTTPError): 133 if isinstance(ex, falcon.HTTPError):