~mvo/software-center/lp1043752

« back to all changes in this revision

Viewing changes to softwarecenter/backend/installbackend_impl/aptd.py

  • Committer: Gary Lasker
  • Date: 2012-10-03 19:52:22 UTC
  • mfrom: (3211.1.1 lp1044141)
  • Revision ID: gary.lasker@canonical.com-20121003195222-pbw5ak1z2v8adtc5
* lp:~mvo/software-center/lp1044141:
  - fix unicode error crash on a transaction error
    (LP: #1044141)

Show diffs side-by-side

added added

removed removed

Lines of Context:
988
988
            del self.pending_purchases[pkgname]
989
989
 
990
990
    def _on_trans_error(self, error, trans, pkgname=None):
991
 
        self._logger.warn("_on_trans_error: '%s' '%s' '%s'" % (
 
991
        self._logger.warn("_on_trans_error: '%r' '%s' '%s'" % (
992
992
                error, trans, pkgname))
993
993
        # re-enable the action button again if anything went wrong
994
994
        result = TransactionFinishedResult(None, False)