Skip to content

Commit

Permalink
changed log levels of a couple of errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Donearm committed Apr 23, 2020
1 parent e4a2f38 commit fdfe55d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions instagram_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def massDownload(instance, startdate, enddate, operation):
for p in dropwhile(lambda p: p.date > enddate, takewhile(lambda p: p.date > startdate, posts)):
instance.download_post(p, profilename)
except instaloader.exceptions.ProfileNotExistsException:
logging.info("Profile " + profilename + " was not found")
logging.warning("Profile " + profilename + " was not found")
with open(NOT_FOUND_FILE, 'a') as n:
n.write(profilename + "\n")
n.close()
Expand All @@ -101,7 +101,7 @@ def massDownload(instance, startdate, enddate, operation):
pass
except instaloader.exceptions.ConnectionException:
# Resource not available, maybe anymore. Skip it
logging.info("Resource not available")
logging.warning("Resource not available")
pass
except TypeError as e:
print("Error while downloading profile " + profilename)
Expand Down

0 comments on commit fdfe55d

Please sign in to comment.