Skip to content

Commit

Permalink
fix for issue #354
Browse files Browse the repository at this point in the history
  • Loading branch information
tedchamb committed Aug 13, 2020
1 parent a1988c8 commit ce11857
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion azure-devops/azure/devops/_file_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,11 @@ def get_cache_dir():
azure_devops_cache_dir = os.getenv('AZURE_DEVOPS_CACHE_DIR', None)\
or os.path.expanduser(os.path.join('~', '.azure-devops', 'python-sdk', 'cache'))
if not os.path.exists(azure_devops_cache_dir):
os.makedirs(azure_devops_cache_dir)
try:
os.makedirs(azure_devops_cache_dir)
except FileExistsError:
# https://github.com/microsoft/azure-devops-python-api/issues/354
pass
return azure_devops_cache_dir


Expand Down

0 comments on commit ce11857

Please sign in to comment.