megaboi2005 / bark-it

I made this because twitter sucks also birds suck dogs better so bark-it ftw. However, since twitter is now X, Dogs are better than the second least used letter of the alphabet so bark-it, always, ftw.
GNU General Public License v3.0
5 stars 5 forks source link

Remove the use of try, mostly by using `.get()`. #18

Closed Bigjango13 closed 2 years ago

Bigjango13 commented 2 years ago

Error handling is slower than .get(), and most of the time the eroor was a KeyError (so it can be replaced with .get(). Using try is considered bad practice and should be avoided. Minor formatting was also applied.