Commit 77896ec
committed
annotate.py: Make the script more resilient
Currently if you cannot create the log file, you cannot even run
$ diff-annotate <subcommand> --help
because it fails to create diff-annotate.log (with PermissionDenied).
Wrap creating log file in try: ... except ... to make the
diff-annotate script more resilient and easier to use.1 parent 77ce606 commit 77896ec
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2564 | 2564 | | |
2565 | 2565 | | |
2566 | 2566 | | |
2567 | | - | |
2568 | | - | |
| 2567 | + | |
| 2568 | + | |
| 2569 | + | |
| 2570 | + | |
| 2571 | + | |
2569 | 2572 | | |
2570 | 2573 | | |
2571 | 2574 | | |
| 2575 | + | |
2572 | 2576 | | |
2573 | 2577 | | |
2574 | 2578 | | |
| |||
0 commit comments