Skip Pass phrase prompt when there is no passphrase

is there a way to bypass Pass phrase prompt when when there is no passphase as we are looking for automation. currently we get prompted for passpharase and it continues when Ok is pressed.

I’m not sure that a passphrase prompt will come if there is no passphrase.
You could look into gpg-preset-passphrase