[XML-SIG] Problem with 'Bad Request'
Wolfgang Schoeberl
Wolfgang.Schoeberl@web.de
Tue, 16 Jan 2001 14:34:26 +0100
Hi,
this is not a specific xml-Problem, but I hope you will help me though. I'=
ve got a problem with catching errors. More specific, I would like to catc=
h 'Bad Request', which wont't work because of the space. Is it a bug in Py=
thon=3F Does anybody know a neat trick=3F
Thanks a lot,
Wolfgang
Here's some more code to describe my problem:
def test1():
try:
raise "NoProblem"
except "NoProblem":
print "Test1: NoProblem catched" # work fine
def test2():
try:
raise "No Problem with blank"
except "No Problem with blank":
print "Test2: No Problem with blank catched" #work fine
def raiseNoProblem():
raise "NoProblem"
def raiseProblemWithBlank():
raise "Problem with blank"
def test3():
try:
raiseNoProblem()
except "NoProblem":
print "Test3: NoProblem catched" #work fine
def test4():
try:
raiseProblemWithBlank()
except "Problem with blank":
print "Test4: No Problem with blank" # does not work :-(
except "Problem":
print "'Test4: Problem' catched it"
except "Problem ":
print "'Test4: Problem=5F' catched it"
except:
print "Test4: 'Problem with blank' not catched - except catched it=
"
test1()
test2()
test3()
test4()
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F
Die Fachpresse ist sich einig: WEB.DE 16mal Testsieger! Kostenlos E-Mail,=20
Fax, SMS, Verschl=FCsselung, POP3, WAP....testen Sie uns! http://freemail.we=
b.de