Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Do not call max if files list is empty #2662

Merged
merged 1 commit into from
Aug 18, 2020
Merged

Do not call max if files list is empty #2662

merged 1 commit into from
Aug 18, 2020

Conversation

krisgesling
Copy link
Contributor

Description

Method that checks modified date of files attempts to call max() even if the list of files is empty. Results in:

ValueError: max() arg is an empty sequence

This change checks if the list is populated first.

How to test

Run dev branch on a Mark 1, after booting uninstall a Skill.

Contributor license agreement signed?

@devops-mycroft devops-mycroft added the CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors) label Aug 14, 2020
@devops-mycroft
Copy link

Voight Kampff Integration Test Succeeded (Results)

Copy link
Collaborator

@forslund forslund left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and seems to be working as expected.

@devops-mycroft
Copy link

Voight Kampff Integration Test Succeeded (Results)

@krisgesling krisgesling merged commit 7f7c97d into dev Aug 18, 2020
@krisgesling krisgesling deleted the bugfix/empty-arg branch September 2, 2020 21:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants