Commit 5df738f
committed
CA-210336: Added exception handling to prevent stack trace dump
Added a try-except block around line 353 which lists devices
at a given path in BaseISCSI.py attach method. Also made change
in SRCommand.py to prevent raising exceptions that are not of
type SR.SRException and dumping the stack trace on command line.
Signed-off-by: Letsibogo Ramadi <letsibogo.ramadi@citrix.com>1 parent 4a4c5b4 commit 5df738f
2 files changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
354 | 361 | | |
355 | 362 | | |
356 | 363 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | | - | |
| 372 | + | |
373 | 373 | | |
374 | 374 | | |
0 commit comments