Changeset 42 for branches/mk/cheesecake/subprocess.py
- Timestamp:
- 06/07/06 18:03:15 (6 years ago)
- Files:
-
- branches/mk/cheesecake/subprocess.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/mk/cheesecake/subprocess.py
r10 r42 394 394 import pickle 395 395 396 __all__ = ["Popen", "PIPE", "STDOUT", "call" ]396 __all__ = ["Popen", "PIPE", "STDOUT", "call", "ProcessError"] 397 397 398 398 try: … … 495 495 return ''.join(result) 496 496 497 class ProcessError(Exception): 498 """This exception is raised when there is an error calling 499 a subprocess.""" 500 pass 497 501 498 502 class Popen(object): … … 984 988 if data != "": 985 989 child_exception = pickle.loads(data) 986 raise child_exception990 raise ProcessError, child_exception 987 991 988 992
