Skip to content

Commit 1d3dd91

Browse files
Merge pull request #95 from matyasselmeci/fix_last_resort_cache
Fix type error when picking a random cache
2 parents 4151ae6 + ac98866 commit 1d3dd91

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/stashcp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ def get_best_stashcache():
453453

454454
if order_str == '':
455455
# Unable to find a geo_ip server to use, return random choice from caches!
456-
minsite = random.choice(caches_list)
456+
minsite = random.choice(caches_list)['name']
457457
logging.error("Unable to use Geoip to find closest cache! Returning random cache %s", minsite)
458458
return minsite
459459
else:

0 commit comments

Comments
 (0)