Error handling in split2dict