No, it really isn't. The blocs in the next war formed well after this treaty, and for that matter most treaties were signed. Strong allies stick with their friends in wartime. The alternative is ignoring half your treaties, which makes you look like a jerk, or sitting out the war in neutrality, which IMO still makes you look like a jerk.
Regardless, sad to see old bonds unfurled. Good luck to both parties.