Merge lp:~rvb/maas/wrong-key-bug-1298788 into lp:~maas-committers/maas/trunk
Proposed by
Raphaël Badin
Status: | Merged |
---|---|
Approved by: | Raphaël Badin |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2207 |
Proposed branch: | lp:~rvb/maas/wrong-key-bug-1298788 |
Merge into: | lp:~maas-committers/maas/trunk |
Diff against target: |
82 lines (+22/-8) 2 files modified
src/maasserver/models/sshkey.py (+13/-8) src/maasserver/models/tests/test_sshkey.py (+9/-0) |
To merge this branch: | bzr merge lp:~rvb/maas/wrong-key-bug-1298788 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jeroen T. Vermeulen (community) | Approve | ||
Review via email: mp+213283@code.launchpad.net |
Commit message
Catch all the exceptions raised by twisted.
Description of the change
I know that catching all exceptions is generally an anti-pattern but in this instance, I think it's preferable to playing hide-and-seek with twisted.
To post a comment you must log in.
It's a nasty problem. For the record, I don't think it's wrong to catch Exception per se, just to suppress potentially important error information.
In that spirit, perhaps you could log the Exception that you catch, for debugging purposes?