Skip to content

Commit

Permalink
fix AttributeError when user is None
Browse files Browse the repository at this point in the history
  • Loading branch information
ResolveWang committed Aug 19, 2017
1 parent 21783a7 commit e0f77da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def crawl_person_infos(uid):

user, is_crawled = user_get.get_profile(uid)
# If it's enterprise user, just skip it
if user.verify_type == 2:
if user and user.verify_type == 2:
set_seed_other_crawled(uid)
return

Expand Down

0 comments on commit e0f77da

Please sign in to comment.