When I was planning to start traveling, the first thing I did was check my passport. It was valid for another 5 months so I called the High Commission of Tanzania in South Africa and I was advised to rather get a new passport because I was at risk of being denied entry