From 9eed14c6dc88ffa144f32b96b0c7d2d8d1296eb2 Mon Sep 17 00:00:00 2001 From: CDemmenie <11903978+Demmenie@users.noreply.github.com> Date: Wed, 14 Jul 2021 15:41:33 +0100 Subject: [PATCH] Convert self.id to str to make it iterable This function was creating a TypeError outlined in issue #1759. This should fix that (I hope) --- praw/models/reddit/mixins/fullname.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/praw/models/reddit/mixins/fullname.py b/praw/models/reddit/mixins/fullname.py index c8c8205b0..d54a9706d 100644 --- a/praw/models/reddit/mixins/fullname.py +++ b/praw/models/reddit/mixins/fullname.py @@ -14,6 +14,6 @@ def fullname(self) -> str: the object's base36 ID, e.g., ``t1_c5s96e0``. """ - if "_" in self.id: + if "_" in str(self.id): return self.id return f"{self._kind}_{self.id}"