Index: Lib/shutil.py =================================================================== --- Lib/shutil.py (revision 82600) +++ Lib/shutil.py (working copy) @@ -353,7 +353,8 @@ archive_dir = os.path.dirname(archive_name) if not os.path.exists(archive_dir): - logger.info("creating %s" % archive_dir) + if logger is not None: + logger.info("creating %s" % archive_dir) if not dry_run: os.makedirs(archive_dir)