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

Prevent a crash if no iOS languages in dot_learn #35

Closed
wants to merge 1 commit into from

Conversation

hoffm386
Copy link

@hoffm386 hoffm386 commented Feb 4, 2019

The existing code crashes if lesson.dot_learn is empty, or otherwise does not contain a :languages key. This checks whether the languages exist before checking if they contain "swift" or "objc".
Closes #23 (and #30)
#staff

The existing code crashes if lesson.dot_learn is empty, or otherwise does not contain a :languages key.  This checks whether the languages exist before checking if they contain "swift" or "objc".
@notnotdrew
Copy link
Member

Thanks for opening this up @hoffm386! I've moved your commit from this PR over to #39 (maintaining your authorship—wanna make sure your contribution is counted!) to combine it with some test coverage we've added for the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exception if .learn is malformed
2 participants