« Previous | Next » 

Revision eb0aa4e5

IDeb0aa4e578a8b1604c436155be6dfa1630ff6329

Added by Bernardo Dal Seno almost 11 years ago

Don't catch an exception that cannot be raised

Since 9b221ea4, _CreateBlockDev() doesn't raise OpExecError any more. Yet
some code was left in place to catch it. By removing that code we have two
advantages:
1. Dead code is removed.
2. If for whatever reason _CreateBlockDev() raises OpExecError, the
exception is not silently dropped and we notice (so we can fix it).

Signed-off-by: Bernardo Dal Seno <>
Reviewed-by: Guido Trotter <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences