From a59641e84cad62b360567a85894c0472c1af8cc9 Mon Sep 17 00:00:00 2001
From: Jana Cupova <root@localhost>
Date: Nov 04 2022 13:46:03 +0000
Subject: koji-gc: fix check for type cc_addr, bcc_addr


Fixes: https://pagure.io/koji/issue/3572

---

diff --git a/util/koji-gc b/util/koji-gc
index 6013c27..9ff8a5c 100755
--- a/util/koji-gc
+++ b/util/koji-gc
@@ -437,12 +437,12 @@ Build: %%(name)s-%%(version)s-%%(release)s
     msg['To'] = "%s@%s" % (owner_name, options.email_domain)  # XXX!
     emails = [msg['To']]
     if options.cc_addr:
-        if not isinstance(options.cc_addr, str):
+        if not isinstance(options.cc_addr, list):
             raise koji.ParameterError('Invalid type of cc_addr: %s' % type(options.cc_addr))
         msg['Cc'] = ','.join(options.cc_addr)
         emails += options.cc_addr
     if options.bcc_addr:
-        if not isinstance(options.bcc_addr, str):
+        if not isinstance(options.bcc_addr, list):
             raise koji.ParameterError('Invalid type of bcc_addr: %s' % type(options.bcc_addr))
         emails += options.bcc_addr
     msg['X-Koji-Builder'] = owner_name

