This is an automated email from the ASF dual-hosted git repository.
uranusjr pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 4abbd80 Fix missing f-string and spelling in DB migration errors
(#20696)
4abbd80 is described below
commit 4abbd80685cecab412e121309fb57d999e658616
Author: Bas Harenslak <[email protected]>
AuthorDate: Thu Jan 6 04:30:13 2022 +0100
Fix missing f-string and spelling in DB migration errors (#20696)
Co-authored-by: Bas Harenslak <[email protected]>
---
airflow/utils/db.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/airflow/utils/db.py b/airflow/utils/db.py
index 06af729..409a3cd 100644
--- a/airflow/utils/db.py
+++ b/airflow/utils/db.py
@@ -705,8 +705,8 @@ def check_and_run_migrations():
print(error)
print(
"You still have unapplied migrations. "
- "You may need to {verb} the database by running
`airflow db {command_name}`",
- f"Make sure the command is run using airflow version
{version}.",
+ f"You may need to {verb} the database by running
`airflow db {command_name}`. ",
+ f"Make sure the command is run using Airflow version
{version}.",
file=sys.stderr,
)
sys.exit(1)
@@ -714,8 +714,8 @@ def check_and_run_migrations():
pass
elif source_heads != db_heads:
print(
- f"ERROR: You need to {verb} the database. Please run `airflow db
{command_name}` ."
- f"Make sure the command is run using airflow version {version}.",
+ f"ERROR: You need to {verb} the database. Please run `airflow db
{command_name}`. "
+ f"Make sure the command is run using Airflow version {version}.",
file=sys.stderr,
)
sys.exit(1)