Fix TypeError: can only concatenate tuple (not dict) to tuple