fgimian / paramiko-expect

A Python expect-like extension for the Paramiko SSH library which also supports tailing logs.
MIT License
204 stars 78 forks source link

Fix expect() to properly raise exception #99

Open vajdera opened 2 months ago

vajdera commented 2 months ago

expect() description states the in case of timeout an exception is raised however it never is. This commit adds raising exception to 'expect()' and uses new TimeoutError (see PEP 3151).

forose commented 1 month ago

yes,I modified the py in myself env like this