skshetry
c223cdaecd
params/metrics: do not fail during dir expansion ( #10375 )
...
params/metrics: assume file when dir expansion raises error
Closes https://github.com/iterative/dvc/issues/10018 .
We have to be careful when expanding paths. This PR fall backs to assume it
as a file when either of `isdir` and `find` raises error due to some mishaps.
The consequence of this assumption happens when we try to read the file.
In that case, if the directory exists, and we happen to try to open it
as a file, dvc will raise `IsADirectoryError`, but that is handled correctly
and won't fail catastrophically like this did.
2024-03-28 07:30:12 +05:45
..
2024-03-11 09:47:05 -04:00
2024-03-22 12:22:16 +00:00
2023-06-18 18:58:30 +03:00
2024-03-26 06:37:53 +00:00
2024-03-28 07:30:12 +05:45
2024-03-28 07:30:12 +05:45
2024-03-22 12:22:16 +00:00
2024-03-22 12:22:16 +00:00
2024-01-30 18:23:04 +05:45
2024-01-30 18:23:04 +05:45
2019-04-16 20:19:22 +03:00
2024-01-30 18:23:04 +05:45
2023-06-18 17:10:45 +03:00
2023-02-04 05:28:07 +02:00
2024-01-30 18:23:04 +05:45
2023-12-03 19:23:09 +05:45
2023-06-22 16:20:56 +09:00
2023-08-10 03:28:32 +03:00
2024-01-30 11:33:25 +02:00
2024-03-25 15:12:33 -04:00
2024-01-30 18:23:04 +05:45
2024-03-22 12:22:16 +00:00
2023-09-28 21:54:06 +03:00
2023-12-12 23:56:19 +02:00
2024-01-30 18:23:04 +05:45
2024-01-30 18:23:04 +05:45
2023-12-15 08:02:40 +02:00
2024-03-26 06:37:53 +00:00
2023-10-13 18:58:23 +03:00
2024-02-08 17:10:58 +05:45
2024-01-30 18:23:04 +05:45
2024-01-30 18:23:04 +05:45
2024-01-30 18:23:04 +05:45
2024-01-30 18:23:04 +05:45
2023-11-09 20:58:58 +05:45
2023-06-09 15:49:44 +03:00
2023-03-23 13:05:31 +00:00
2023-06-09 15:49:44 +03:00
2023-10-13 18:58:23 +03:00
2024-02-08 17:10:58 +05:45
2023-06-09 15:49:44 +03:00
2024-01-30 18:23:04 +05:45
2024-01-30 18:23:04 +05:45
2023-06-18 17:10:45 +03:00
2023-06-06 18:38:07 +05:45
2024-01-30 18:23:04 +05:45
2023-06-06 18:38:07 +05:45
2022-01-19 12:22:07 +02:00
2023-10-06 18:11:30 +03:00
2024-01-30 18:23:04 +05:45
2021-11-18 15:34:45 +02:00
2023-11-29 14:39:54 +09:00
2024-01-30 18:23:04 +05:45
2023-08-02 18:08:30 +05:45
2023-03-13 02:58:23 +02:00
2024-02-01 21:49:50 +02:00
2023-06-09 15:49:44 +03:00
2023-06-04 19:36:54 +03:00
2023-02-04 05:28:07 +02:00
2022-05-12 20:33:18 +03:00
2022-11-07 12:45:32 +01:00
2023-12-27 19:05:33 +05:45