Fix 'occured' typo in error messages

Mentioned in #573 - thanks!
This commit is contained in:
Alexander Graf 2020-04-18 11:16:55 +02:00 committed by GitHub
parent e268f9e625
commit 1338cf0fcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,7 +113,7 @@ class InstaloaderContext:
def close(self): def close(self):
"""Print error log and close session""" """Print error log and close session"""
if self.error_log and not self.quiet: 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: for err in self.error_log:
print(err, file=sys.stderr) print(err, file=sys.stderr)
self._session.close() self._session.close()
@ -349,7 +349,7 @@ class InstaloaderContext:
else: else:
self._graphql_query_timestamps[query_hash].append(time.monotonic()) self._graphql_query_timestamps[query_hash].append(time.monotonic())
else: 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 " "Please do not use Instagram in your browser or run multiple instances of Instaloader "
"in parallel.") "in parallel.")
print(textwrap.fill(text_for_429), file=sys.stderr) print(textwrap.fill(text_for_429), file=sys.stderr)