Am Samstag 17 Mai 2008 schrieb nicdumz@svn.wikimedia.org:
Revision: 5391
- Bug #1965938 "Article 'Loyalit?\195?\164t' in de.wikt throws UTF decoding
exception" : That article contained an invalid template, {{Loyalit%E4t}}, and it appears that incorrect template names were not handled correctly. Indeed, "except Error" does not catch _ALL_ Errors. "except Exception", or "except:" is needed if you want to catch UnicodeDecodeError
except Error:
except:
Hi nicdumz,
please be careful when writing such stuff. If you just write except, you also catch KeyboardInterrupt. But if you catch it, the user can no longer press CTRL-C to interrupt the script.
See: http://effbot.org/zone/stupid-exceptions-keyboardinterrupt.htm
Cheers
Daniel