Skip to content

Commit 74abaa8

Browse files
authored
Merge pull request InstaPy#6112 from amestoy/mandatory_words_fix
Added mandatory_bio_keywords control before evaluating for mandatory …
2 parents 265a86d + 38820e2 commit 74abaa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

instapy/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ def validate_username(
449449
),
450450
)
451451
# the mandatory keywords applies to the username as well as the bio text
452-
if not evaluate_mandatory_words(
452+
if mandatory_bio_keywords and not evaluate_mandatory_words(
453453
username + " " + profile_bio, mandatory_bio_keywords
454454
):
455455
return False, "Mandatory bio keywords not found"

0 commit comments

Comments
 (0)