From 5f1ade68be25a247f6d2d5a26bf4195fe2040b74 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Mon, 7 Dec 2015 19:49:54 +0100 Subject: [PATCH] Fix copying on Windows systems. --- patoolib/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patoolib/util.py b/patoolib/util.py index 7e6f1eb..f1ddb7f 100644 --- a/patoolib/util.py +++ b/patoolib/util.py @@ -667,7 +667,7 @@ def link_or_copy(src, dst, verbosity=0): log_info("Copying %s -> %s" % (src, dst)) try: os.link(src, dst) - except OSError: + except (AttributeError, OSError): try: shutil.copy(src, dst) except OSError as msg: