No need to capture a return code from raw_input() and then act on that.  Just jump to the punchline and act directly on the result of raw_input().
Formatting with a fresh ext4 filesystem if found to not already be formatted.