Skip to content

Commit

Permalink
Fix missing 'f' in f-strings
Browse files Browse the repository at this point in the history
Signed-off-by: Nathaniel Mitchell <[email protected]>
  • Loading branch information
npmitche committed Mar 27, 2024
1 parent 0e8192c commit b1cf287
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions chipsec/helper/windows/windowshelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def stop(self) -> bool:
if self.use_existing_service:
return True

logger().log_debug("[helper] Stopping service '{SERVICE_NAME}'...")
logger().log_debug(f"[helper] Stopping service '{SERVICE_NAME}'...")
try:
win32api.CloseHandle(self.driver_handle)
self.driver_handle = None
Expand Down Expand Up @@ -443,13 +443,13 @@ def delete(self) -> bool:
logger().log_warning(f"Cannot delete service '{SERVICE_NAME}' (not stopped)")
return False

logger().log_debug("[helper] Deleting service '{SERVICE_NAME}'...")
logger().log_debug(f"[helper] Deleting service '{SERVICE_NAME}'...")
try:
win32serviceutil.RemoveService(SERVICE_NAME)
logger().log_debug("[helper] Service '{SERVICE_NAME}' deleted")
logger().log_debug(f"[helper] Service '{SERVICE_NAME}' deleted")
except win32service.error as err:
if logger().DEBUG:
logger().log_warning("RemoveService failed: {err.args[2]} ({err.args[0]:d})")
logger().log_warning(f"RemoveService failed: {err.args[2]} ({err.args[0]:d})")
return False

return True
Expand Down

0 comments on commit b1cf287

Please sign in to comment.