Closed pkillnine closed 2 years ago
I'm also having this issue, running version 1.2.3 with python 3.8.5
Python: 3.9.1
1 ~ » ~/git/env/bin/python ~/git/env/bin/twtxt following
1 Traceback (most recent call last):
2 File "/home/user/git/env/bin/twtxt", line 8, in <module>
3 sys.exit(main())
4 File "/home/user/git/env/lib/python3.9/site-packages/click/core.py", line 722, in __call__
5 return self.main(*args, **kwargs)
6 File "/home/user/git/env/lib/python3.9/site-packages/click/core.py", line 697, in main
7 rv = self.invoke(ctx)
8 File "/home/user/git/env/lib/python3.9/site-packages/click/core.py", line 1066, in invoke
9 return _process_result(sub_ctx.command.invoke(sub_ctx))
10 File "/home/user/git/env/lib/python3.9/site-packages/click/core.py", line 895, in invoke
11 return ctx.invoke(self.callback, **ctx.params)
12 File "/home/user/git/env/lib/python3.9/site-packages/click/core.py", line 535, in invoke
13 return callback(*args, **kwargs)
14 File "/home/user/git/env/lib/python3.9/site-packages/click/decorators.py", line 17, in new_func
15 return f(get_current_context(), *args, **kwargs)
16 File "/home/user/git/env/lib/python3.9/site-packages/twtxt/cli.py", line 218, in following
17 click.echo(style_source_with_status(source, status, porcelain))
18 File "/home/user/git/env/lib/python3.9/site-packages/twtxt/helper.py", line 72, in style_source_with_status
19 if status.status_code == 200:
20 AttributeError: 'NoneType' object has no attribute 'status_code'
Fixed!
Running version 1.2.3 with Python3.6 on Slackware.
My guess is it is requesting a url (not sure which one, it's making multiple requests at the same time) and times out, returns
None
but doesn't skip that one nor show it to have timed out.