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: 'exceptions.KeyError' object has no attribute 'msg' #294

Open
b97pla opened this issue May 27, 2015 · 3 comments
Open

AttributeError: 'exceptions.KeyError' object has no attribute 'msg' #294

b97pla opened this issue May 27, 2015 · 3 comments

Comments

@b97pla
Copy link

b97pla commented May 27, 2015

Traceback (most recent call last):
  File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/mock.py", line 1201, in patched
    return func(*args, **keywargs)
  File "/home/travis/build/SciLifeLab/taca-ngi-pipeline/tests/test_deliver.py", line 97, in test_fetch_sample_db_entry
    self.deliverer.sample_entry(),
  File "build/bdist.linux-x86_64/egg/ngi_pipeline/utils/classes.py", line 48, in __call__
    return_val = self.func(*args)
  File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/taca_ngi_pipeline-0.1.1-py2.7.egg/taca_ngi_pipeline/deliver/deliver.py", line 95, in sample_entry
    self.dbcon().sample_get,self.projectid,self.sampleid)
  File "build/bdist.linux-x86_64/egg/ngi_pipeline/utils/classes.py", line 48, in __call__
    return_val = self.func(*args)
  File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/taca_ngi_pipeline-0.1.1-py2.7.egg/taca_ngi_pipeline/deliver/deliver.py", line 65, in dbcon
    return db.CharonSession()
  File "build/bdist.linux-x86_64/egg/ngi_pipeline/database/classes.py", line 19, in __call__
    cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs)
  File "build/bdist.linux-x86_64/egg/ngi_pipeline/database/classes.py", line 41, in __init__
    raise ValueError('Unable to load needed Charon variable: {}'.format(e.msg))
AttributeError: 'exceptions.KeyError' object has no attribute 'msg'
@mariogiov
Copy link

Son of a beesting

@mariogiov
Copy link

I fix

@mariogiov
Copy link

Although it does still get the point across

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