commit | 68239376ace131f5028734f70116050c96f5bbed | [log] [tgz] |
---|---|---|
author | Chris Liechti <cliechti@gmx.net> | Mon Jun 13 21:22:42 2016 +0200 |
committer | Chris Liechti <cliechti@gmx.net> | Mon Jun 13 21:22:42 2016 +0200 |
tree | c00b3f072542311edc1de0f9b7844051badf85d3 | |
parent | f1dec6ad4ec0d3114c486b83ada2c4e18467f543 [diff] [blame] |
posix: handle different errno for OSX when setting control lines on open, fixes #133
diff --git a/serial/serialposix.py b/serial/serialposix.py index 0bf3df5..913b643 100644 --- a/serial/serialposix.py +++ b/serial/serialposix.py
@@ -266,7 +266,7 @@ if not self._rtscts: self._update_rts_state() except IOError as e: - if e.errno == 22: # ignore Invalid argument + if e.errno in (22, 25): # ignore Invalid argument and Inappropriate ioctl pass else: raise