From 7bf1957b49730077940181d12b11df64e149c40d Mon Sep 17 00:00:00 2001 From: Lubomír Sedlář Date: Jun 08 2016 08:19:35 +0000 Subject: Fix push called without argument This patch fixes `fedpkg retire`, which calls `push` as a part of the process. Since there is no `--force` argument on `retire` command, this caused it to fail with `AttributeError`. Signed-off-by: Lubomír Sedlář --- diff --git a/src/pyrpkg/cli.py b/src/pyrpkg/cli.py index e28bda7..767e92d 100755 --- a/src/pyrpkg/cli.py +++ b/src/pyrpkg/cli.py @@ -1225,7 +1225,7 @@ see API KEY section of copr-cli(1) man page. norebase=self.args.no_rebase) def push(self): - self.cmd.push(self.args.force) + self.cmd.push(getattr(self.args, 'force', False)) def scratch_build(self): # A scratch build is just a build with --scratch