diff --git a/GramAddict/core/views.py b/GramAddict/core/views.py index d389950a..e91f77a3 100644 --- a/GramAddict/core/views.py +++ b/GramAddict/core/views.py @@ -1383,7 +1383,7 @@ def _isFollowing(self, container): resourceId=ResourceID.BUTTON, classNameMatches=ClassName.BUTTON_OR_TEXTVIEW_REGEX, ) - if type(text) != str: + if not isinstance(text, str): text = text.get_text() if text.exists() else "" return text in ["Following", "Requested"]