1
0
mirror of https://github.com/instaloader/instaloader.git synced 2024-08-18 20:59:38 +02:00

Avoid uninitialized variable when called with :stories (#1242)

This commit is contained in:
Eduardo Kalinowski 2021-08-04 13:04:16 -03:00 committed by GitHub
parent aaeaaa0e22
commit 43c9d32b22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -788,6 +788,7 @@ class Instaloader:
if not userids:
self.context.log("Retrieving all visible stories...")
profile_count = None
else:
userids = [p if isinstance(p, int) else p.userid for p in userids]
profile_count = len(userids)