Skip to content

Commit

Permalink
Merge pull request #17 from ebob9/issue-464
Browse files Browse the repository at this point in the history
Fix for iCloud Drive objects throwing str/type/repr errors, fix for picklepete#464
  • Loading branch information
timlaing authored Dec 29, 2024
2 parents 18fc9d1 + 296618a commit 7547ed6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyicloud/services/drive.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ def __getitem__(self, key):
raise KeyError(f"No child named '{key}' exists") from i

def __str__(self):
return rf"\{type: {self.type}, name: {self.name}\}"
return "{" + f"type: {self.type}, name: {self.name}" + "}"

def __repr__(self):
return f"<{type(self).__name__}: {str(self)}>"
Expand Down

0 comments on commit 7547ed6

Please sign in to comment.