diff --git a/mpcdf_push.py b/mpcdf_push.py
index 7c369ce1fc2db8a5846d3e6769e46202315c2d86..ba5cf1c7ab74e3d54a4a8ea602cb524c40551de3 100644
--- a/mpcdf_push.py
+++ b/mpcdf_push.py
@@ -68,7 +68,7 @@ def do_mpcdf_push(self, subcmd, opts, *args):
         for attribute in package_attributes:
             try:
                 attr = mpcdf_common.get_attribute(api_url, from_project, package, attribute)
-            except Exception as e:
+            except Exception:
                 continue
             mpcdf_common.set_attribute(api_url, (to_project, package), attr)