← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~ilasc/launchpad:fix-repack-exception-message into launchpad:master

 

Ioana Lasc has proposed merging ~ilasc/launchpad:fix-repack-exception-message into launchpad:master.

Commit message:
Make repack exception message py3 compatible

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~ilasc/launchpad/+git/launchpad/+merge/400311
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~ilasc/launchpad:fix-repack-exception-message into launchpad:master.
diff --git a/lib/lp/code/scripts/repackgitrepository.py b/lib/lp/code/scripts/repackgitrepository.py
index 0c25ff6..25e8990 100644
--- a/lib/lp/code/scripts/repackgitrepository.py
+++ b/lib/lp/code/scripts/repackgitrepository.py
@@ -67,7 +67,7 @@ class RepackTunableLoop(TunableLoop):
             except CannotRepackRepository as e:
                 self.logger.error(
                     'An error occurred while requesting repository repack %s'
-                    % e.message)
+                    % e.args[0])
                 continue
             except TransactionRollbackError as error:
                 self.logger.error(