diff --git a/conda/clean-betas.py b/conda/clean-betas.py
index b50e6660ece1ffe67570e625d1dfc3efb38290d0..f424326be966b0e38ecba4dce26f2091c383c2dd 100755
--- a/conda/clean-betas.py
+++ b/conda/clean-betas.py
@@ -70,7 +70,7 @@ def main(scandir, dry_run):
     for f in filenames:
       if f.startswith('repodata.json'): continue
       m = package_regex.match(f)
-      if is None:
+      if m is None:
         print('ignoring `%s\' (does not match)' % os.path.join(path, f))
         continue