| commit | dda20d4e308af1afceb58839e93ccc4210c9f3fc | [log] [tgz] |
|---|---|---|
| author | David Garcia <david.garcia@canonical.com> | Tue Sep 22 11:36:48 2020 +0200 |
| committer | garciadav <david.garcia@canonical.com> | Wed Sep 23 12:24:17 2020 +0200 |
| tree | 10e8384306ee1182d96fd3afb6718c60252a28a5 | |
| parent | 6a39cb03b404dfcd24cd26e45d741266db1df9bf [diff] |
Improve Config.get() function The .get is a bit confusing because apparently has the same behaviour as dict.get(), which returns None when the key doesn't exist. But that's not the case, because Config.get in this case is doing dict["key"], which returns a KeyError when the key does not exist Change-Id: Ief82eb1ae2e2fea60b8be60cae8610bf8605fb6f Signed-off-by: David Garcia <david.garcia@canonical.com>