Skip to content

Commit 77b6155

Browse files
authored
Merge pull request #850 from Ali-Huseynov/patch-1
Fixes issue of __str__ raising exception when DecodeUrl is None
2 parents 7ed4583 + 4c76ba8 commit 77b6155

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

office365/sharepoint/types/resource_path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def entity_type_name(self):
4444
return "SP.ResourcePath"
4545

4646
def __str__(self):
47-
return self.DecodedUrl
47+
return self.DecodedUrl or ""
4848

4949
def __repr__(self):
5050
return self.DecodedUrl or self.entity_type_name

0 commit comments

Comments
 (0)