Skip to content

Commit

Permalink
try without try-catch
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksMat committed Mar 24, 2021
1 parent 25c0271 commit a3eabbd
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,9 @@ def setup(app):
# copy examples
shutil.rmtree(EXAMPLES_FOLDER, ignore_errors=True)
shutil.rmtree(MARKDOWNS_FOLDER, ignore_errors=True)

try:
shutil.copytree('../../examples', EXAMPLES_FOLDER)
os.mkdir(MARKDOWNS_FOLDER)
shutil.copyfile('../../CONTRIBUTING.md', os.path.join(MARKDOWNS_FOLDER, 'CONTRIBUTING.md'))
except FileExistsError:
pass
shutil.copytree('../../examples', EXAMPLES_FOLDER)
os.mkdir(MARKDOWNS_FOLDER)
shutil.copyfile('../../CONTRIBUTING.md', os.path.join(MARKDOWNS_FOLDER, 'CONTRIBUTING.md'))


def process_readme():
Expand Down

0 comments on commit a3eabbd

Please sign in to comment.