In 1939? Germany had signed the Versailles Treaty, so no. Anyways Danzig did not cause the German attack on Poland in any way or form whatsoever - and they were governing Danzig already, and had banned all other parties except the Polish minority organization. (Poland's and the League's letting that happen were violations of the Versailles Treaty, of course.)
In 1919? Yes, I suppose so.
That hardly counts.
Well, the German people had overthrown the Kaiser and demanded an immediate end of the war, and the German military leaders signed an armistice while agreeing to follow the eventual peace treaty, and then Ebert's government signed the Versailles Treaty six months later. I'm not sure what's so out of order about the process here.