Skip to content

Commit

Permalink
bugfix: destroy profile path before recreating it
Browse files Browse the repository at this point in the history
  • Loading branch information
lirazsiri committed Nov 7, 2013
1 parent b246574 commit 06ecbb1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions registry.py
Expand Up @@ -172,11 +172,10 @@ def profile(self, val=UNDEFINED):
else:
profile_archive = val

if not exists(self.path.profile):
os.makedirs(self.path.profile)
self.profile = None
os.makedirs(self.path.profile)

if val == self.EMPTY_PROFILE:
self.profile = None
self._file_str(self.path.profile.profile_id, val)
file(self.path.profile.stamp, "w").close()

Expand Down

0 comments on commit 06ecbb1

Please sign in to comment.