Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Commit

Permalink
remove: resolved VSCODE merge conflict msg
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-greening committed Jan 17, 2021
1 parent 7e64588 commit 0c1ece0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions instascrape/scrapers/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,10 @@ def get_posts(self, webdriver, amount=None, login_first=False, login_pause=60, m
# Determine how many posts are available on the page
try:
posts_len = self.posts
<<<<<<< Updated upstream
=======
if amount is None:
amount = posts_len
if amount > posts_len:
raise ValueError(f"{amount} posts requested but {self.username} only has {posts_len} posts")
>>>>>>> Stashed changes
except AttributeError:
raise AttributeError(f"{type(self)} must be scraped first")

Expand Down

0 comments on commit 0c1ece0

Please sign in to comment.