Change order of some checks
[pgp-tools.git] / caff / caff
index 675ffa221d2f7774767aded584d191f43823e76c..665e893b5db8fc8b96298bc3e3730ee9980ac367 100755 (executable)
--- a/caff/caff
+++ b/caff/caff
@@ -875,15 +875,15 @@ for my $keyid (@keyids_ok) {
                        $i++;
                };
                debug("Parsing stdout output done.");
-               if ($is_uat) {
-                       notice("Can't handle attribute userid of key $keyid.");
-                       next;
-               };
                unless ($have_one) {
                        debug("Uid ".($uid_number-1)." was the last, there is no $uid_number.");
                        info("key $keyid done.");
                        last;
                };
+               if ($is_uat) {
+                       notice("Can't handle attribute userid of key $keyid.");
+                       next;
+               };
                if ($delete_some) {
                        debug("need to delete a few uids.");
                        readwrite_gpg("deluid\n", $inputfd, $stdoutfd, $stderrfd, $statusfd, exitwhenstatusmatches => $KEYEDIT_DELUID_PROMPT, nocloseinput => 1);