launchableinc / cli

Launchable CLI
https://pypi.org/project/launchable/
Apache License 2.0
24 stars 13 forks source link

Improve smooth error handling #888

Closed Konboi closed 5 months ago

Konboi commented 5 months ago

In the raw profile, we used dict['key'] method with or <default value>. However if it doesn't define a target key, a default value won't used and KeyError: '<TARGET KEY' exception will be thrown. So, I fixed to use .get(<KEY>, <DEFAULT VALUE>) instead of dict['key'] or <DEFAULT VALUE> style.

And, fixed when the user set duration as string type, we'll covert it to float (number)

sonarcloud[bot] commented 5 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud