We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39e646c commit 20b7251Copy full SHA for 20b7251
1 file changed
stashcp.py
@@ -558,7 +558,10 @@ def get_best_stashcache():
558
os.path.join(prefix, "etc/stashcache/caches.json"),
559
os.path.join(prefix, "usr/share/stashcache/caches.json")]
560
if resource_string:
561
- cache_files.insert(0, resource_string(__name__, 'caches.json'))
+ try:
562
+ cache_files.insert(0, resource_string(__name__, 'caches.json'))
563
+ except IOError as ioe:
564
+ logging.debug("Unable to retrieve caches.json using resource string, trying other locations")
565
566
for cache_file in cache_files:
567
if os.path.isfile(cache_file):
0 commit comments