Last active
May 8, 2018 20:10
-
-
Save eyalroth/80c1eff13ef5954c4e00d424f59c3b53 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (dao.selectLabel(labelName).isEmpty) { | |
try { | |
dao.createLabel(labelName) | |
} catch { | |
case e => | |
if (dao.selectLabel(labelName).isEmpty) { | |
throw new Exception(s"Failed to create label: $labelName", e) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment