Skip to content

Commit

Permalink
Fix FileNotFoundError when loading existing state (#1480)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan authored and disconnect3d committed Jul 9, 2019
1 parent 745b0ea commit 4ca0d4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manticore/core/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ def rm(self, key):
:param str key: The file to delete
"""
path = os.path.join(self.uri, key)
os.remove(path)
if os.path.exists(path):
os.remove(path)

def ls(self, glob_str):
"""
Expand Down

0 comments on commit 4ca0d4c

Please sign in to comment.