mirror of https://github.com/dbcli/pgcli
Use pexpect.TIMEOUT instead of pexpect.exceptions.TIMEOUT
All pexpect submodules have been moved into the pexpect package as of version 3.0.
This commit is contained in:
parent
ef8aac61c4
commit
4542637eff
|
@ -4,6 +4,7 @@ Upcoming:
|
|||
Bug fixes:
|
||||
----------
|
||||
* Avoid error message on the server side if hstore extension is not installed in the current database (#991). (Thanks: `Marcin Cieślak`_)
|
||||
* All pexpect submodules have been moved into the pexpect package as of version 3.0. Use pexpect.TIMEOUT (Thanks: `Marcin Cieślak`_)
|
||||
|
||||
2.0.2:
|
||||
======
|
||||
|
|
|
@ -16,7 +16,7 @@ def expect_exact(context, expected, timeout):
|
|||
timedout = False
|
||||
try:
|
||||
context.cli.expect_exact(expected, timeout=timeout)
|
||||
except pexpect.exceptions.TIMEOUT:
|
||||
except pexpect.TIMEOUT:
|
||||
timedout = True
|
||||
if timedout:
|
||||
# Strip color codes out of the output.
|
||||
|
|
Loading…
Reference in New Issue