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)
In the raw profile, we used
dict['key']
method withor <default value>
. However if it doesn't define a target key, a default value won't used andKeyError: '<TARGET KEY'
exception will be thrown. So, I fixed to use.get(<KEY>, <DEFAULT VALUE>)
instead ofdict['key'] or <DEFAULT VALUE>
style.And, fixed when the user set duration as string type, we'll covert it to float (number)