~hudson-openstack/nova/trunk

« back to all changes in this revision

Viewing changes to nova/virt/xenapi_conn.py

  • Committer: Tarmac
  • Author(s): Matthew Hooker
  • Date: 2011-08-05 02:22:13 UTC
  • mfrom: (1360.5.3 diaper-excepts)
  • Revision ID: tarmac-20110805022213-g75no51wpnj06a9t
Remove instances of the "diaper pattern"

Anywhere "except:" occurs, I tried to replace it with an explicit except on
known error types. If none were known, Except was used.

In the process I've been able to unearth a few evasive bugs and clean up some
adjacent code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
440
440
                params = None
441
441
                try:
442
442
                    params = eval(exc.details[3])
443
 
                except:
 
443
                except Exception:
444
444
                    raise exc
445
445
                raise self.XenAPI.Failure(params)
446
446
            else: