From 71df9124a6149d73c3db5fd8d5673ca67df9c203 Mon Sep 17 00:00:00 2001 From: JoeLametta Date: Tue, 8 May 2018 10:10:00 +0000 Subject: [PATCH] Fix dict.keys referenced when not iterating --- whipper/common/program.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whipper/common/program.py b/whipper/common/program.py index abe3094..09e16b2 100644 --- a/whipper/common/program.py +++ b/whipper/common/program.py @@ -329,7 +329,7 @@ class Program: if not release and len(metadatas) > 1: # Select the release that most closely matches the duration. - lowest = min(deltas.keys()) + lowest = min(list(deltas)) if prompt: guess = (deltas[lowest])[0].mbid