diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2020-05-20 16:39:13 +0300 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2020-05-20 16:57:38 +0300 |
commit | aab58145c5aae11d1ebbd99eaf425901670e8a89 (patch) | |
tree | 21ec563df8b1731c4703285bd533b229f87b24c0 /calm/irk.py | |
parent | c452b2cb5c8fbe0a7a50fd90f295806c8a029567 (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-x | calm/irk.py | 2 |
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 |