sourcery: remove f-strings to make it happy

This commit is contained in:
Romain Bazile 2021-10-18 14:01:58 +02:00
parent ec43f11f98
commit 6cb8b70eaa
2 changed files with 4 additions and 5 deletions

View file

@ -543,7 +543,7 @@ class ImagerProcess(multiprocessing.Process):
if "object_date" not in self.__global_metadata:
# If this path exists, then ids are reused when they should not
logger.error(f"The metadata did not contain object_date!")
logger.error("The metadata did not contain object_date!")
self.imager_client.client.publish(
"status/imager",
'{"status":"Configuration update error: object_date is missing!"}',
@ -768,7 +768,6 @@ class ImagerProcess(multiprocessing.Process):
logger.success("Imager process shut down! See you!")
# This is called if this script is launched directly
# TODO This should be a test suite for this library
if __name__ == "__main__":
# TODO This should be a test suite for this library
pass

View file

@ -253,7 +253,7 @@ class StepperProcess(multiprocessing.Process):
logger.error(f"{self.stepper_type} is what was supplied")
return
logger.info(f"Stepper initialisation is over")
logger.info("Stepper initialisation is over")
def __message_pump(self, last_message):
logger.debug("We have received a pumping command")
@ -295,7 +295,7 @@ class StepperProcess(multiprocessing.Process):
# Get number of steps from the different received arguments
flowrate = float(last_message["flowrate"])
if flowrate == 0:
logger.error(f"The flowrate should not be == 0")
logger.error("The flowrate should not be == 0")
self.actuator_client.client.publish(
"status/pump", '{"status":"Error, The flowrate should not be == 0"}'
)