projects
/
personal
/
aptbot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f04922d
)
fixed bug where windows would throw OSError which wasn't caught
author
Georgios Atheridis
<atheridis@tutamail.com>
Thu, 2 Jun 2022 10:37:55 +0000
(13:37 +0300)
committer
Georgios Atheridis
<atheridis@tutamail.com>
Thu, 2 Jun 2022 10:37:55 +0000
(13:37 +0300)
aptbot/args_logic.py
patch
|
blob
|
history
diff --git
a/aptbot/args_logic.py
b/aptbot/args_logic.py
index 3f715639f9525345608d775097d948500a579766..e12ccc8bc99d45428bcd1fd5273271683614951c 100644
(file)
--- a/
aptbot/args_logic.py
+++ b/
aptbot/args_logic.py
@@
-37,7
+37,7
@@
def add_account(s: socket.socket, acc: str):
msg = ""
try:
s.send(bytes(f"{command}==={channel}==={msg}", "utf-8"))
- except
BrokenPipeError
:
+ except
(BrokenPipeError, OSError)
:
pass
@@
-68,7
+68,7
@@
def disable_account(s: socket.socket, acc: str):
msg = ""
try:
s.send(bytes(f"{command}==={channel}==={msg}", "utf-8"))
- except
BrokenPipeError
:
+ except
(BrokenPipeError, OSError)
:
pass