Skip to content

Commit 63cd912

Browse files
committed
Minor update
1 parent 82694bf commit 63cd912

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

procbridge/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def __init__(self, host: str, port: int):
1414
self.host = host
1515
self.port = port
1616

17-
def request(self, method: str, payload: Any = None) -> dict:
17+
def request(self, method: str, payload: Any = None) -> Any:
1818
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1919
s.connect((self.host, self.port))
2020
try:
@@ -94,7 +94,7 @@ def _start_connection(server: Server, s: socket.socket):
9494
p.write_good_response(s, result)
9595
except Exception as err:
9696
p.write_bad_response(s, str(err))
97-
except Exception:
97+
except Exception as err:
9898
pass
9999
finally:
100100
s.close()

procbridge/protocol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def read_socket(s: socket.socket) -> (int, dict):
5656
text_bytes = read_bytes(s, json_len)
5757
if len(text_bytes) != json_len:
5858
raise ProtocolError(ErrorMessages.INCOMPLETE_DATA,
59-
'expect ' + str(json_len) + ' bytes but found' + str(len(text_bytes)))
59+
'expect ' + str(json_len) + ' bytes but found ' + str(len(text_bytes)))
6060
try:
6161
obj = json.loads(str(text_bytes, encoding='utf-8'), encoding='utf-8')
6262
except Exception as err:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="procbridge",
8-
version="1.1.1",
8+
version="1.1.2",
99
author="Gong Zhang",
1010
author_email="[email protected]",
1111
description="A super-lightweight IPC (Inter-Process Communication) protocol over TCP socket.",

0 commit comments

Comments
 (0)