catch exception

Found a problem today:

try:
   ***
except Exception,e:
   return e

A colleague wrote this about catching exceptions. But the problem is that if something goes wrong, and you don't use the returned result. It will not prompt an exception. It is better to suggest this method of printing e. .

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325815199&siteId=291194637