Skip to content

Commit

Permalink
fix: replace type with isinstance
Browse files Browse the repository at this point in the history
  • Loading branch information
mastrolube committed Feb 10, 2024
1 parent 33854b8 commit 61917a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GramAddict/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down

0 comments on commit 61917a6

Please sign in to comment.