Show
Ignore:
Timestamp:
06/07/06 18:03:15 (6 years ago)
Author:
mk
Message:

Catch an exception when pylint is not found (patch contributed by Ben Leslie).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/mk/cheesecake/subprocess.py

    r10 r42  
    394394    import pickle 
    395395 
    396 __all__ = ["Popen", "PIPE", "STDOUT", "call"
     396__all__ = ["Popen", "PIPE", "STDOUT", "call", "ProcessError"
    397397 
    398398try: 
     
    495495    return ''.join(result) 
    496496 
     497class ProcessError(Exception): 
     498    """This exception is raised when there is an error calling 
     499    a subprocess.""" 
     500    pass 
    497501 
    498502class Popen(object): 
     
    984988            if data != "": 
    985989                child_exception = pickle.loads(data) 
    986                 raise child_exception 
     990                raise ProcessError, child_exception 
    987991 
    988992