All pastes #36460 Raw Edit

Anonymous

public text v1 · immutable
#36460 ·published 2006-01-11 12:43 UTC
rendered paste body
# Following class in ldtp.py file
class LdtpExecutionError (Exception):
        def __init__(self, value):
                self.value = value
        def __str__(self):
                return repr (self.value)

# test1.py file
import ldtp

try:
    execfile ('test2.py')
except ldtp.LdtpExecutionError, msg:
    print msg