Jan-24-2019, 11:55 PM
You should use
except KeyError:
. You should always catch exceptions as precisely as possible, so other error can propagate correctly.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures