Merge lp:~seb128/update-manager/check-none-controller into lp:update-manager

Proposed by Sebastien Bacher
Status: Merged
Approved by: Barry Warsaw
Approved revision: 2659
Merged at revision: 2659
Proposed branch: lp:~seb128/update-manager/check-none-controller
Merge into: lp:update-manager
Diff against target: 17 lines (+4/-3)
1 file modified
UpdateManager/UpdateManager.py (+4/-3)
To merge this branch: bzr merge lp:~seb128/update-manager/check-none-controller
Reviewer Review Type Date Requested Status
Barry Warsaw (community) Approve
Michael Vogt Pending
Review via email: mp+197786@code.launchpad.net

Commit message

check if there is a controller before using it

Description of the change

check if there is a controller before using it

that check was there before http://bazaar.launchpad.net/~ubuntu-core-dev/update-manager/main/revision/2622.1.7 and got dropped in the refactoring

To post a comment you must log in.
Revision history for this message
Barry Warsaw (barry) wrote :

LGTM, though do you know of a way to reproduce the problem?

Revision history for this message
Barry Warsaw (barry) :
review: Approve
Revision history for this message
Sebastien Bacher (seb128) wrote :

> LGTM, though do you know of a way to reproduce the problem?

no, I tried for a bit to trigger it but couldn't, the fix should be safe though since that's what was done before

Revision history for this message
Barry Warsaw (barry) wrote :

On Dec 11, 2013, at 09:06 AM, Sebastien Bacher wrote:

>> LGTM, though do you know of a way to reproduce the problem?
>
>no, I tried for a bit to trigger it but couldn't, the fix should be safe
>though since that's what was done before

Agreed, and by visual inspection it looked fine, so I committed it to trunk
and uploaded. Hey, that's what bug reports are for, right? :)

Revision history for this message
Sebastien Bacher (seb128) wrote :

> Agreed, and by visual inspection it looked fine, so I committed it to trunk
> and uploaded. Hey, that's what bug reports are for, right? :)

lol, indeed, thanks! ;-)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'UpdateManager/UpdateManager.py'
2--- UpdateManager/UpdateManager.py 2013-07-12 05:06:12 +0000
3+++ UpdateManager/UpdateManager.py 2013-12-04 19:02:20 +0000
4@@ -171,9 +171,10 @@
5 if not self.get_sensitive():
6 return True
7
8- controller_close = self.controller.close()
9- if controller_close:
10- return controller_close
11+ if self.controller:
12+ controller_close = self.controller.close()
13+ if controller_close:
14+ return controller_close
15 self.exit()
16
17 def exit(self):

Subscribers

People subscribed via source and target branches

to status/vote changes: