Python non blocking multi-client service

sohcahtoa82 at gmail.com sohcahtoa82 at gmail.com
Thu Aug 25 18:15:27 EDT 2016


On Tue, Aug 23, 2016 at 11:39 PM,  <dima.olkhov at cell-buddy.com> wrote:
> On Tuesday, August 23, 2016 at 6:42:53 AM UTC-7, Chris Angelico wrote:
> > On Tuesday, August 23, 2016 at 4:09:07 PM UTC+3, dimao wrote:
> > >       except:
> > >            print ('Error')
> >
> >
> > Don't do this.
> >
> > ChrisA
> 
> I did that only for the debug reasons :-)

That makes it even worse.  If you're trying to debug something, you want as much information as you can get, and you're throwing it all away.

If you want your program to keep going no matter what happened, at *least* print the stack trace, and not just "Error".



More information about the Python-list mailing list