We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1fcad9 commit bf7004dCopy full SHA for bf7004d
src/manage/install_command.py
@@ -495,7 +495,11 @@ def _preserve_site(cmd, root):
495
break
496
except OSError:
497
LOGGER.verbose("Failed to remove %s.", target)
498
- LOGGER.info("Preserving %s during update.", dirs[0].relative_to(root))
+ try:
499
+ LOGGER.info("Preserving %s during update.", dirs[0].relative_to(root))
500
+ except ValueError:
501
+ # Just in case a directory goes weird, so we don't break
502
+ LOGGER.verbose(exc_info=True)
503
LOGGER.verbose("Moving %s to %s", dirs[0], target)
504
try:
505
dirs[0].rename(target)
0 commit comments