Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ptyprocess/ptyprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def spawn(
exception = exctype(errmsg.decode('utf-8', 'replace'))
if exctype is OSError:
exception.errno = int(errno_s)
except:
except Exception:
raise Exception('Subprocess failed, got bad error data: %r'
% exec_err_data)
else:
Expand Down Expand Up @@ -388,7 +388,7 @@ def __del__(self):
try:
self.close()
# which exception, shouldn't we catch explicitly .. ?
except:
except Exception:
pass


Expand Down