Éric Araujo  committed 5f1ad65

Protect logging call against None argument (fixes #11045).

Initial patch by Kelsey Hightower. Approved by Raymond. A test was
non-trivial to write without calling the private function directly, so
we moved that for later.

  • Participants
  • Parent commits 791f52f

Comments (0)

Files changed (2)

File Lib/

     archive_dir = os.path.dirname(archive_name)
     if not os.path.exists(archive_dir):
-"creating %s" % archive_dir)
+        if logger is not None:
+  "creating %s" % archive_dir)
         if not dry_run:
+- Issue #11045: Protect logging call against None argument.
 - Issue #11052: Correct IDLE menu accelerators on Mac OS X for Save