Skip to content

Commit

Permalink
Merge pull request #21 from UCL/20-fix-lints
Browse files Browse the repository at this point in the history
Issue #20 fixed minor lint errors
  • Loading branch information
thompson318 committed Jul 20, 2021
2 parents ca4a8f7 + 7ffb01b commit 1b23007
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sksurgerybk/interface/bk5000.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ def send_command_message(self, message):
return is_ok
except socket.error as error_msg:
raise IOError("An error: {:} has occured while trying to send \
the message: {:}.".format(error_msg, message_to_send))
the message: {:}.".format(error_msg, message_to_send)) \
from socket.error

def receive_response_message(self, expected_size=1024):
"""Receive a message
Expand Down Expand Up @@ -180,7 +181,8 @@ def connect_to_host(self, address, port):
self.socket.close()
raise IOError(
"An error: {:} has occured while trying to connect to: {:} \
with port: {:}".format(error_msg, address, port))
with port: {:}".format(error_msg, address, port)) \
from socket.error

def query_win_size(self):
""" Query the BK5000 for the window/image size """
Expand Down Expand Up @@ -215,7 +217,6 @@ def query_scanarea(self):
self.parse_scanarea_message()

def parse_scanarea_message(self):
#pylint:disable = bad-whitespace
""" Separate the scanarea response msssage into the separate
components.
Expand Down

0 comments on commit 1b23007

Please sign in to comment.