Browse Source

fix a bug in metadata path constructor

Christian Mönch 2 years ago
parent
commit
d474da0084
1 changed files with 1 additions and 0 deletions
  1. 1 0
      dataladmetadatamodel/metadatapath.py

+ 1 - 0
dataladmetadatamodel/metadatapath.py

@@ -8,6 +8,7 @@ class MetadataPath(PurePosixPath):
         args = [
             arg.replace("\\", "/")
             for arg in args
+            if isinstance(arg, str)
         ]
         original_path = PurePosixPath(*args)
         if not original_path.is_absolute():