From 1338cf0fcd1a9e8c8abfa71aded152d9b777304b Mon Sep 17 00:00:00 2001 From: Alexander Graf <17130992+aandergr@users.noreply.github.com> Date: Sat, 18 Apr 2020 11:16:55 +0200 Subject: [PATCH] Fix 'occured' typo in error messages Mentioned in #573 - thanks! --- instaloader/instaloadercontext.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/instaloader/instaloadercontext.py b/instaloader/instaloadercontext.py index 24305b0..b1458ff 100644 --- a/instaloader/instaloadercontext.py +++ b/instaloader/instaloadercontext.py @@ -113,7 +113,7 @@ class InstaloaderContext: def close(self): """Print error log and close session""" if self.error_log and not self.quiet: - print("\nErrors occured:", file=sys.stderr) + print("\nErrors occurred:", file=sys.stderr) for err in self.error_log: print(err, file=sys.stderr) self._session.close() @@ -349,7 +349,7 @@ class InstaloaderContext: else: self._graphql_query_timestamps[query_hash].append(time.monotonic()) else: - text_for_429 = ("HTTP error code 429 was returned because too many queries occured in the last time. " + text_for_429 = ("HTTP error code 429 was returned because too many queries occurred in the last time. " "Please do not use Instagram in your browser or run multiple instances of Instaloader " "in parallel.") print(textwrap.fill(text_for_429), file=sys.stderr)