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

got a key_error when trying to see patients that I don't have access to. #106

Open
logust79 opened this issue Mar 8, 2017 · 2 comments
Open
Labels

Comments

@logust79
Copy link
Collaborator

logust79 commented Mar 8, 2017

KeyError
KeyError: 'external_ids'

File "/home/rmhanpo/phenopolis/views/individual.py", line 73, in individual_page
if not lookup_patient(db=get_db(app.config['DB_NAME_USERS']),user=session['user'],external_id=individual): return 'Sorry you are not permitted to see this patient, please get in touch with us to access this information.'
File "/home/rmhanpo/phenopolis/lookups/lookups.py", line 21, in lookup_patient
external_ids=db.users.find_one({'user':user},{'external_ids':1})['external_ids']
KeyError: 'external_ids'
@pontikos
Copy link
Collaborator

pontikos commented Mar 8, 2017 via email

@logust79
Copy link
Collaborator Author

logust79 commented Mar 8, 2017

JingYu

@IsmailM IsmailM added the bug label Mar 28, 2017
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

3 participants