Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'NoneType' object has no attribute 'strip' #1

Closed
tels7ar opened this issue May 13, 2016 · 2 comments
Closed

AttributeError: 'NoneType' object has no attribute 'strip' #1

tels7ar opened this issue May 13, 2016 · 2 comments

Comments

@tels7ar
Copy link

tels7ar commented May 13, 2016

I just tried out fbcap on my messages.htm file. It begins to process the file, but then it dies as follows:

$ fbcap messages.htm
Discovered chat thread with [XXX,YYY,ZZZ]...Traceback (most recent call last):
  File "/usr/local/bin/fbcap", line 9, in <module>
    load_entry_point('fbchat-archive-parser==0.4', 'console_scripts', 'fbcap')()
  File "build/bdist.macosx-10.10-intel/egg/fbchat_archive_parser/main.py", line 66, in main
  File "/Library/Python/2.7/site-packages/clip.py", line 652, in run
    self.invoke(self.parse(tokens))
  File "/Library/Python/2.7/site-packages/clip.py", line 634, in invoke
    self._main.invoke(parsed)
  File "/Library/Python/2.7/site-packages/clip.py", line 519, in invoke
    self._callback(**{k: v for k, v in iteritems(parsed) if k not in self._subcommands})
  File "build/bdist.macosx-10.10-intel/egg/fbchat_archive_parser/main.py", line 27, in fbcap
  File "build/bdist.macosx-10.10-intel/egg/fbchat_archive_parser/parser.py", line 98, in __init__
  File "build/bdist.macosx-10.10-intel/egg/fbchat_archive_parser/parser.py", line 108, in __parse_content
  File "build/bdist.macosx-10.10-intel/egg/fbchat_archive_parser/parser.py", line 174, in __process_element
AttributeError: 'NoneType' object has no attribute 'strip'

I tried python 2.7 and 3.5.1 just for fun, same results.

@ownaginatious
Copy link
Owner

ownaginatious commented May 13, 2016

Interesting, that would imply that in your messages.htm file, you have a thread that lacks information regarding who the participants are. I'm not sure what that means, but seeing as it's rare, I've put in a fix to skip those threads and assume they're corrupted.

I just updated the version of the tool on PyPI (version 0.4.post2). Let me know if that helps!

@tels7ar
Copy link
Author

tels7ar commented May 13, 2016

That fixed it, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants