Skip to main content
6 events
when toggle format what by license comment
Mar 12, 2020 at 10:51 comment added Solomon Ucko @AkhilSharma The first change is to only catch Exceptions. By default, except catches BaseException, which also includes GeneratorExit, SystemExit, and KeyboardInterrupt. The second change is to use try...else so that any exception raised in result[0].alpha_3 is not caught with except.
Mar 12, 2020 at 5:09 vote accept Akhil Sharma
Mar 12, 2020 at 5:09 vote accept Akhil Sharma
Mar 12, 2020 at 5:09
Mar 11, 2020 at 16:41 history edited Peilonrayz CC BY-SA 4.0
added 105 characters in body
Mar 11, 2020 at 16:39 comment added Akhil Sharma Both the codes look so similar.I would like to learn how your code improves upon my defects of try except.
Mar 11, 2020 at 16:20 history answered Peilonrayz CC BY-SA 4.0