Ernesto wrote:
> Within the scope of one Python file (say myFile.py), I'd like to print
> a message on ANY exception that occurs in THAT file, dependent on a
> condition.
condition = True
def handle_any_exception(function):
def trampoline(*args, **kwargs):
try:
Ernesto wrote:
> Within the scope of one Python file (say myFile.py), I'd like to print
> a message on ANY exception that occurs in THAT file, dependent on a
> condition.
>
> Here's the pseudocode:
>
> if anyExceptionOccurs():
> if myCondition:
> print "Here's my global exceptio
Ernesto wrote:
> Within the scope of one Python file (say myFile.py), I'd like to print
> a message on ANY exception that occurs in THAT file, dependent on a
> condition.
>
> Here's the pseudocode:
>
> if anyExceptionOccurs():
> if myCondition:
> print "Here's my global exception
Within the scope of one Python file (say myFile.py), I'd like to print
a message on ANY exception that occurs in THAT file, dependent on a
condition.
Here's the pseudocode:
if anyExceptionOccurs():
if myCondition:
print "Here's my global exception message"
Is this functionalit