manifest: fix _ManifestImportDepth() call

We should be passing a str filename here. Caught by mypy.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
Martí Bolívar 2020-06-09 17:20:49 -07:00 committed by Marti Bolivar
parent b613c5d5ea
commit 5abde2024f
1 changed files with 1 additions and 1 deletions

View File

@ -1391,7 +1391,7 @@ class Manifest:
**{'import-context':
ctx}).projects[MANIFEST_PROJECT_INDEX]
except RecursionError as e:
raise _ManifestImportDepth(mp, pathobj) from e
raise _ManifestImportDepth(mp, str(pathobj)) from e
# submp.west_commands comes first because we
# logically treat imports from self as if they are