Skip to content

Commit d1b968e

Browse files
authored
fix(LinstorSR): Correctly reference a variable exception (#91)
This bug is minor but it makes it difficult to understand why snapshots fail since the initial trace is lost due to the exception caused by the reference to the non-existing variable "e". Signed-off-by: Damien Thenot <damien.thenot@vates.tech>
1 parent a96aed5 commit d1b968e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/LinstorSR.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2514,7 +2514,7 @@ def _snapshot(self, snap_type, cbtlog=None, cbt_consistency=None):
25142514
self.session.xenapi.VDI.set_sm_config(
25152515
vdi_ref, active_vdi.sm_config
25162516
)
2517-
except Exception:
2517+
except Exception as e:
25182518
util.logException('Failed to snapshot!')
25192519
try:
25202520
self.sr._handle_interrupted_clone(

0 commit comments

Comments
 (0)