Given the code, it appears that it asks the user for the height before this. The relevant code that precedes this, including the declaration of height might have a flaw, but I doubt it. For the retry to execute, height would have to have an invalid value going in.
More likely, it's possible that it is working correctly and you have misinterpreted the actions. I believe that the get_int() function itself will call a retry if non-numeric chars are entered. To test this, try changing the word "Retry:" in your code to "Try again:" and rerun your code. If it still returns with a "Retry:" prompt, it isn't your while loop code running, but rather, it is the get_int() function itself that is producing the Retry: prompt. If it does give a "Try again" prompt, then the problem lies elsewhere. If that's the case, can you please edit your question and add the code that precedes the while loop?
If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)