Python short course: None type in dictionary element selection
Sometimes, an error about 'None type for dict selection' pops up. This is mainly due to the empty results from get() and a followed chained get(). So, add branches to decide or give exception by try...except...
Comments
Post a Comment