Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #76541
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Subject | Re: python scikits.audiolab Sndfile special chars in file name |
| Date | 2014-08-19 08:55 +0100 |
| References | <CABy8q84h2Cs9o9byiPC6wsOu_=E49tRagxrVerrKCBBxFv73+g@mail.gmail.com> <CAPTjJmrcmBLeBY9Wo-twvT1KVq0MP5LnLPAE8kKrnaN8W8Bg7g@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.13131.1408434975.18130.python-list@python.org> (permalink) |
On 19/08/2014 02:42, Chris Angelico wrote:
> On Tue, Aug 19, 2014 at 1:34 AM, Furqan wasi <furqan@avpreserve.com> wrote:
>> except:
>> print('Simple didnt work')
>> pass
>
> Drop all of these bare excepts. Let the exceptions get printed.
> Believe you me, they are a LOT more helpful than "didnt work".
>
> ChrisA
>
Then once you've got rid of your coding errors, add the ones you do need
to catch, for example FileNotFoundError is often needed in people's code.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: python scikits.audiolab Sndfile special chars in file name Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-08-19 08:55 +0100
csiph-web