Skip to content

Commit

Permalink
Avoid printing warning when buildreq_cache does not exist
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick McCarty <[email protected]>
  • Loading branch information
phmccarty committed Jan 13, 2020
1 parent 182dc05 commit d69bf90
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autospec/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,8 @@ def write_default_conf_file(name, description):
else:
try:
os.unlink(cache_file)
except FileNotFoundError:
pass
except Exception as e:
print_warning(f"Unable to remove buildreq_cache file: {e}")

Expand Down

0 comments on commit d69bf90

Please sign in to comment.