Can't Write File
rami.chowdhury at gmail.com
Wed Nov 11 17:23:26 CET 2009
On Wed, 11 Nov 2009 06:00:44 -0800, Victor Subervi
<victorsubervi at gmail.com> wrote:
> On Tue, Nov 10, 2009 at 4:33 PM, Dave Angel <davea at ieee.org> wrote:
>> Victor Subervi wrote:
>> 2) you don't show the error traceback
> because there are none
> try: # It does this, because I've printed 'getpic1.py' etc.
> getpic = "getpic" + str(w) + ".py"
There are no error tracebacks because you're deliberately suppressing them
with the except: clause above. A bare except: clause *may* be acceptable
in production code, where you may *want* to silently ignore all errors,
but if you're trying to debug something then it's really not helpful.
"Never attribute to malice that which can be attributed to stupidity" --
408-597-7068 (US) / 07875-841-046 (UK) / 0189-245544 (BD)
More information about the Python-list