diff --git a/installsystems/image.py b/installsystems/image.py
index 08490e3507621c9838e921f0bc72a87d54893425..d0dcc0caba6005101ae1e850b5047d55a1031859 100644
--- a/installsystems/image.py
+++ b/installsystems/image.py
@@ -358,7 +358,7 @@ class PackageImage(Image):
         try:
             desc = json.loads(img_desc)
         except Exception as e:
-            raise Exception("Invalid description: %s" % e1)
+            raise Exception("Invalid description: %s" % e)
         # FIXME: we should check valid information here
         return desc