You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ur...@apache.org on 2022/01/06 03:31:04 UTC

[airflow] branch main updated: Fix missing f-string and spelling in DB migration errors (#20696)

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 <Ba...@users.noreply.github.com>
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 <ba...@astronomer.io>
---
 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)