Browse Source

Remove the python 3 f strings for py2 compat

Chris Adams 5 years ago
parent
commit
4710f86c56
1 changed files with 5 additions and 5 deletions
  1. 5 5
      only_show_green_results.py

+ 5 - 5
only_show_green_results.py

@@ -31,15 +31,15 @@ class GreenCheck:
         except FileNotFoundError:
         except FileNotFoundError:
             self.db = False
             self.db = False
             if allow_api_connections:
             if allow_api_connections:
-                logger.debug(f"No database found at {database_name}.")
+                logger.debug("No database found at {}.".format(database_name))
                 logger.debug(
                 logger.debug(
-                    (f"Falling back to the instead of the Greencheck API, as ",
-                     "'allow_api_connections' is set to {allow_api_connections}.")
+                    ("Falling back to the instead of the Greencheck API, as ",
+                     "'allow_api_connections' is set to {}.".format(allow_api_connections))
                 )
                 )
             else:
             else:
                 logger.debug(
                 logger.debug(
-                    f("No database found at {database_name}. Not making any checks ",
-                      "because 'allow_api_connections' is set to {allow_api_connections}")
+                    ("No database found at {database_name}. Not making any checks ".format(database_name),
+                     "because 'allow_api_connections' is set to {}".format(allow_api_connections))
                 )
                 )
 
 
     def check_url(self, url=None) -> bool:
     def check_url(self, url=None) -> bool: