Skip to content

Commit

Permalink
Remove check and use exist_ok arguement
Browse files Browse the repository at this point in the history
  • Loading branch information
mohi7solanki committed Oct 12, 2018
1 parent af6eef8 commit 67038a4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions playlist_length/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@


CACHE_DIR = os.path.join(os.path.expanduser('~'), '.playlist_length')

if not os.path.exists(CACHE_DIR):
os.makedirs(CACHE_DIR)
os.makedirs(CACHE_DIR, exist_ok=True)


def pluralize(number, base, suffix):
Expand Down

1 comment on commit 67038a4

@karansthr
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool

Please sign in to comment.