Right, string will be treated exactly the same way. Because if dictionary is wrongly defined by user (is configurable) then treat it as a string. Perhaps multiple except statements would work better. Fixing it now