Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/cygwin-apps/calm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2020-05-20 16:39:13 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2020-05-20 16:57:38 +0300
commitaab58145c5aae11d1ebbd99eaf425901670e8a89 (patch)
tree21ec563df8b1731c4703285bd533b229f87b24c0 /calm/irk.py
parentc452b2cb5c8fbe0a7a50fd90f295806c8a029567 (diff)
Fix redundant exception types in irk.py
B014 Redundant exception types in `except (ConnectionRefusedError, OSError):`. Write `except OSError:`, which catches exactly the same exceptions.
Diffstat (limited to 'calm/irk.py')
-rwxr-xr-xcalm/irk.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/calm/irk.py b/calm/irk.py
index 0037a33..5dd195d 100755
--- a/calm/irk.py
+++ b/calm/irk.py
@@ -34,7 +34,7 @@ def irk(message, target=DEFAULT_TARGET, server=DEFAULT_SERVER):
send(s, target, message)
s.close()
- except (ConnectionRefusedError, OSError):
+ except OSError:
pass