Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'exception': 0.03; 'failing': 0.05; 'wrapped': 0.07; 'cc:addr:python-list': 0.10; 'properly': 0.15; 'clause.': 0.16; 'filename:fname piece:signature': 0.16; 'originate': 0.16; 'wrote:': 0.17; 'else,': 0.17; 'stefan': 0.17; 'cc:2**0': 0.23; 'posts': 0.23; 'statement': 0.23; "haven't": 0.23; 'somewhere': 0.24; 'thus': 0.24; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'lines': 0.28; 'source': 0.29; 'that.': 0.30; 'error': 0.30; 'code': 0.31; 'problem.': 0.32; 'impression': 0.33; 'received:192.168.2': 0.34; 'thanks': 0.34; 'pm,': 0.35; 'except': 0.36; 'but': 0.36; 'subject:: ': 0.38; 'received:192': 0.39; 'received:192.168': 0.40; 'leading': 0.61; 'dozen': 0.91 Date: Thu, 26 Jul 2012 14:43:28 +0200 From: Philipp Hagemeister User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120624 Icedove/10.0.5 MIME-Version: 1.0 To: jaroslav.dobrek@gmail.com Subject: Re: catch UnicodeDecodeError References: <04f7ff8d-9881-4a04-ab2e-b5573b5f3cd1@googlegroups.com> In-Reply-To: X-Enigmail-Version: 1.4 OpenPGP: id=FAFB085C Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig742B59133B5A2F4C608AC372" Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 32 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1343306616 news.xs4all.nl 6914 [2001:888:2000:d::a6]:39088 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:26088 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig742B59133B5A2F4C608AC372 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 07/26/2012 02:24 PM, Stefan Behnel wrote: > Read again: "*code* line". The OP was apparently failing to see that > the error did not originate in the source code lines that he had > wrapped with a try-except statement but somewhere else, thus leading to the misguided impression that the exception was not properly caught by the except clause. Oops, over a dozen posts and I still haven't grasped the OP's problem. Sorry! and thanks for noting that. - Philipp --------------enig742B59133B5A2F4C608AC372 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEAREKAAYFAlARO3IACgkQ9eq1gvr7CFzB7wCfc2+iRzUQVmaysDBNPq8JmM86 /FIAoIDrIzKLc3CpdsONnOyg+3Xi6MRh =Awd6 -----END PGP SIGNATURE----- --------------enig742B59133B5A2F4C608AC372--