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

Content-Extension: AttributeError: 'NoneType' object has no attribute 'strip' #79

Open
andygrunwald opened this issue Apr 8, 2014 · 1 comment
Labels

Comments

@andygrunwald
Copy link
Contributor

If i run CVSAnalY with the git repo of CVSAnalY with this config:

db_driver = 'mysql'
db_user = 'root'
db_password = None
db_hostname = 'localhost'

extensions = ['Content']

and command ./cvsanaly2 -d cvsanaly_before -f ./config .

I got some errors:

./cvsanaly2 -d cvsanaly_before -f ./config .
Parsing log for . (git)
Warning: Detected empty branch 'travisci-readme', it'll be ignored
Warning: Detected empty branch 'pep8-pycvsanaly2', it'll be ignored
Warning: Detected empty branch 'travisci', it'll be ignored
Warning: Detected empty branch 'pep8-tests', it'll be ignored
Warning: Detected empty branch 'pep8-root', it'll be ignored
Warning: Detected empty branch 'libresoft-utils', it'll be ignored
Database looks empty, removing cache file /Users/andygrunwald/.cvsanaly2/cache/[email protected]:andygrunwald_CVSAnalY.git
Executing extensions
Executing extension FileTypes
Executing extension Content
Exception in thread Thread-6:
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 808, in __bootstrap_inner
    self.run()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 761, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/Volumes/HDD/Development/CVSAnalY.git/pycvsanaly2/extensions/Jobs.py", line 49, in _job_thread
    job.run(repo, repo_uri)
  File "/Volumes/HDD/Development/CVSAnalY.git/pycvsanaly2/extensions/Content.py", line 61, in run
    self.path = self.path.strip('/')
AttributeError: 'NoneType' object has no attribute 'strip'

Exception in thread Thread-4:
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 808, in __bootstrap_inner
    self.run()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 761, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/Volumes/HDD/Development/CVSAnalY.git/pycvsanaly2/extensions/Jobs.py", line 49, in _job_thread
    job.run(repo, repo_uri)
  File "/Volumes/HDD/Development/CVSAnalY.git/pycvsanaly2/extensions/Content.py", line 61, in run
    self.path = self.path.strip('/')
AttributeError: 'NoneType' object has no attribute 'strip'
@mniemela
Copy link
Contributor

mniemela commented Jun 9, 2014

I'm probably stating the obvious, but self.path is None which causes the exception. Is this supposed to happen in any circumstances?

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

No branches or pull requests

2 participants