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 KeyError: value #59

Merged
merged 1 commit into from
Aug 20, 2022
Merged

fix KeyError: value #59

merged 1 commit into from
Aug 20, 2022

Conversation

deadc0de6
Copy link
Contributor

This fixes below error occurring when no motion video is available in the time frame provided to get_motion_files

File "/home/xux/.local/lib/python3.7/site-packages/reolinkapi/mixins/motion.py", line 49, in get_motion_files
  result = resp['value']['SearchResult']
KeyError: 'value'

@Benehiko
Copy link
Member

This looks good, thank you for your contribution @deadc0de6 :)

@Benehiko Benehiko merged commit 77eaff9 into ReolinkCameraAPI:master Aug 20, 2022
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.

2 participants