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

FIX: Catch empty happi databases #67

Merged
merged 4 commits into from
Mar 8, 2018
Merged

FIX: Catch empty happi databases #67

merged 4 commits into from
Mar 8, 2018

Conversation

teddyrendahl
Copy link
Contributor

Description

If either the Questionnaire or main happi database is empty we should warn the
user specfically instead of generating a non-sensical error messages. This is
mainly caused by the fact that .all_devices and .search return None
instead of empty lists

Motivation and Context

Closes #44

If either the Questionnaire or main happi database is empty we should warn the
user specfically instead of generating a non-sensical error messages. This is
mainly caused by the fact that `.all_devices` and `.search` return `None`
instead of empty lists
@teddyrendahl teddyrendahl requested a review from ZLLentz March 8, 2018 17:30
@codecov-io
Copy link

codecov-io commented Mar 8, 2018

Codecov Report

Merging #67 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #67      +/-   ##
==========================================
+ Coverage   99.06%   99.07%   +0.01%     
==========================================
  Files          14       14              
  Lines         533      539       +6     
==========================================
+ Hits          528      534       +6     
  Misses          5        5
Impacted Files Coverage Δ
hutch_python/qs_load.py 92.85% <100%> (+0.85%) ⬆️
hutch_python/happi.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3fc6c6b...75bd1da. Read the comment docs.

@ZLLentz ZLLentz merged commit 800bf19 into pcdshub:master Mar 8, 2018
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

Successfully merging this pull request may close these issues.

Happi.all_devices does not return iterable
3 participants