1
0
mirror of https://github.com/instaloader/instaloader.git synced 2024-11-04 09:22:29 +01:00

Fix AttributeError when not logging in

Mentioned in #26. Bug was introduced in 0ad50c1.
This commit is contained in:
Alexander Graf 2017-08-03 07:31:58 +02:00
parent 6b520f6a2d
commit 46ac119a10

View File

@ -1157,7 +1157,8 @@ def main():
loader = Instaloader(sleep=not args.no_sleep, quiet=args.quiet, shorter_output=args.shorter_output, loader = Instaloader(sleep=not args.no_sleep, quiet=args.quiet, shorter_output=args.shorter_output,
user_agent=args.user_agent, user_agent=args.user_agent,
dirname_pattern=args.dirname_pattern, filename_pattern=args.filename_pattern) dirname_pattern=args.dirname_pattern, filename_pattern=args.filename_pattern)
loader.download_profiles(args.profile, args.login.lower(), args.password, args.sessionfile, loader.download_profiles(args.profile, args.login.lower() if args.login is not None else None, args.password,
args.sessionfile,
int(args.count) if args.count is not None else None, int(args.count) if args.count is not None else None,
args.profile_pic_only, not args.skip_videos, args.geotags, args.comments, args.profile_pic_only, not args.skip_videos, args.geotags, args.comments,
args.fast_update, args.stories, args.stories_only) args.fast_update, args.stories, args.stories_only)