Commit f68153c
committed
Fix get_advisory_url to handle string file paths
The function now accepts both Path objects and strings for
the `file` and `base_path` parameters, converting strings to
Path objects before calling relative_to().
This fixes the AttributeError that occurred when importers
passed string paths instead of Path objects.
Fixes: #2016
Signed-off-by: Mrityunjay Raj <mr.raj.earth@gmail.com>1 parent 4171dbe commit f68153c
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
543 | 544 | | |
544 | 545 | | |
545 | 546 | | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
546 | 551 | | |
547 | 552 | | |
548 | 553 | | |
| |||
0 commit comments