From d00f3ba79b0fbcb470f9574813aad8067bad6677 Mon Sep 17 00:00:00 2001 From: Lipu Fei Date: Mon, 20 Nov 2017 13:06:02 +0100 Subject: [PATCH] Fix for loop --- .../VersionUpgrade/VersionUpgrade30to31/VersionUpgrade30to31.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/VersionUpgrade/VersionUpgrade30to31/VersionUpgrade30to31.py b/plugins/VersionUpgrade/VersionUpgrade30to31/VersionUpgrade30to31.py index 7064da09ad..7130871d8e 100644 --- a/plugins/VersionUpgrade/VersionUpgrade30to31/VersionUpgrade30to31.py +++ b/plugins/VersionUpgrade/VersionUpgrade30to31/VersionUpgrade30to31.py @@ -136,7 +136,7 @@ class VersionUpgrade30to31(VersionUpgrade): parser["containers"]["2"] = "empty_quality" # fix empty containers - for key, specific_empty_container in _EMPTY_CONTAINER_DICT: + for key, specific_empty_container in _EMPTY_CONTAINER_DICT.items(): if parser.has_option("containers", key) and parser["containers"][key] == "empty": parser["containers"][key] = specific_empty_container