I am downloading a file from the net, and it fails even though I am doing:
for p in query:
try: except IOError as e: print e;
If th
This catches everything. But it is much, much better to catch the exact exception. python <= 2.7
while True: try: doStuff() except Exception, e: f = open('log.txt', 'w') f.write('An exceptional thing happed - %s' % e) f.close()