Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion stashcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,10 @@ def get_best_stashcache():
os.path.join(prefix, "etc/stashcache/caches.json"),
os.path.join(prefix, "usr/share/stashcache/caches.json")]
if resource_string:
cache_files.insert(0, resource_string(__name__, 'caches.json'))
try:
cache_files.insert(0, resource_string(__name__, 'caches.json'))
except IOError as ioe:
logging.debug("Unable to retrieve caches.json using resource string, trying other locations")

for cache_file in cache_files:
if os.path.isfile(cache_file):
Expand Down