Skip to content

Commit

Permalink
Replace %s with {} in formatadapter when logging
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgait committed Jan 22, 2021
1 parent 7b4b98d commit 7234746
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spinnman/processes/abstract_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class AbstractProcess(object):
"_connections", ]

ERROR_MESSAGE = (
"failure in request to board %s with ethernet chip (%d, %d) for "
"failure in request to board {} with ethernet chip (%d, %d) for "
"chip (%d, %d, %d)")

def __init__(self):
Expand Down Expand Up @@ -74,5 +74,5 @@ def check_for_error(self, print_exception=False):
self._error_requests, self._exceptions, self._tracebacks,
self._connections)
if print_exception:
logger.error("%s", str(ex))
logger.error("{}".format(str(ex)))
raise ex

0 comments on commit 7234746

Please sign in to comment.