corrected small error on import command
authordurandn
Fri, 16 Sep 2016 12:27:39 +0200
changeset 184 1c96a8098ab9
parent 183 b57504a2983f
child 185 43a230dd2cca
corrected small error on import command
src/iconolab/management/commands/importimages.py
--- a/src/iconolab/management/commands/importimages.py	Fri Sep 16 12:07:53 2016 +0200
+++ b/src/iconolab/management/commands/importimages.py	Fri Sep 16 12:27:39 2016 +0200
@@ -109,7 +109,7 @@
                 with open(metacategories_json_path) as metacategories_json_file:
                     metacategories_data = json.loads(metacategories_json_file.read())
                     for metacategory in metacategories_data:
-                        if mecategory.get("label", None) is None:
+                        if metacategory.get("label", None) is None:
                             raise ValueError("!!! Metacategory without label !!!")
 
             # We read the csv