diff options
author | Giampaolo Rodola' <g.rodola@gmail.com> | 2013-12-17 20:38:17 +0100 |
---|---|---|
committer | Giampaolo Rodola' <g.rodola@gmail.com> | 2013-12-17 20:38:17 +0100 |
commit | d47993e2652b8f51f891566f49e660190b2e540d (patch) | |
tree | dcd7185f50554f9122a6ba3e6d6566b3fb7cbb9d /psutil/_psposix.py | |
parent | 996b67bc1dc227962cbe16249b1710ba414d8be0 (diff) | |
download | psutil-d47993e2652b8f51f891566f49e660190b2e540d.tar.gz |
TimeoutExpired exception: pass the original timeout so that the error message is more informative
Diffstat (limited to 'psutil/_psposix.py')
-rw-r--r-- | psutil/_psposix.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/psutil/_psposix.py b/psutil/_psposix.py index e7d8ea12..d4407184 100644 --- a/psutil/_psposix.py +++ b/psutil/_psposix.py @@ -54,7 +54,7 @@ def wait_pid(pid, timeout=None): def check_timeout(delay): if timeout is not None: if timer() >= stop_at: - raise TimeoutExpired(pid) + raise TimeoutExpired(timeout, pid) time.sleep(delay) return min(delay * 2, 0.04) |