Skip to content

Commit ac98866

Browse files
committed
Fix type error when picking a random cache
1 parent 4151ae6 commit ac98866

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)