Skip to content

Commit

Permalink
Merge pull request readthedocs#4925 from stsewd/dont-rmtree-symlink
Browse files Browse the repository at this point in the history
Don't rmtree symlink
  • Loading branch information
ericholscher authored Nov 27, 2018
2 parents 47bc26e + dcc37cc commit b170de9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readthedocs/core/symlink.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def symlink_single_version(self):
symlink = self.project_root
if os.path.islink(symlink):
safe_unlink(symlink)
if os.path.exists(symlink):
elif os.path.exists(symlink):
shutil.rmtree(symlink)

# Create symlink
Expand Down

0 comments on commit b170de9

Please sign in to comment.