Commit 2537157
committed
Restrict HTTP request error handling to appropriate exception
The "arduino/report-size-deltas" action relies on the GitHub REST API. It makes HTTP requests to various API endpoints
during each workflow run.
It is expected that these requests might occasionally produce an exception due to transient network outages. For this
reason, the action has special handling of exceptions. Previously, that exception handling code was configured to be
triggered on any exception, even though it is specific to HTTP request errors. It is more appropriate to target it only
to the specific urllib.error.HTTPError exception that results from an HTTP request error, leaving any other types of
unexpected exceptions unhandled.1 parent e9c0345 commit 2537157
File tree
2 files changed
+6
-4
lines changed- reportsizedeltas
- tests
2 files changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
637 | 637 | | |
638 | 638 | | |
639 | 639 | | |
640 | | - | |
| 640 | + | |
641 | 641 | | |
642 | 642 | | |
643 | 643 | | |
| |||
664 | 664 | | |
665 | 665 | | |
666 | 666 | | |
667 | | - | |
| 667 | + | |
668 | 668 | | |
669 | 669 | | |
670 | 670 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
901 | 901 | | |
902 | 902 | | |
903 | 903 | | |
904 | | - | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
905 | 907 | | |
906 | | - | |
| 908 | + | |
907 | 909 | | |
908 | 910 | | |
909 | 911 | | |
| |||
0 commit comments