Commit 2faf781
[pcp_metrics] improve exception handling in plot.py annotate function
Move datetime.strptime() call inside try/except block to properly
catch parsing errors. Also add TypeError to handled exceptions for
robustness against unexpected input types.
Signed-off-by: Vito Castellano <vcastell@redhat.com>1 parent 9ecdab2 commit 2faf781
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
415 | | - | |
| 415 | + | |
| 416 | + | |
416 | 417 | | |
417 | 418 | | |
418 | | - | |
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
| |||
0 commit comments