mirror of
https://github.com/linux-system-roles/network.git
synced 2026-07-20 17:59:00 +00:00
Previously, we would catch any kind of exception. We only want to suppress an error if the default value is not a callable (but instead a plain value). Usually, in python they say it's easier to ask for forgiveness than permission. However, that is often not true (the code here this case becomes simpler, not more complicated). But more important, in this case we only get a TypeError, which doesn't exactly tell us what is wrong. We want to only suppress the error, if the instance is not callable. Signed-off-by: Thomas Haller <thaller@redhat.com> |
||
|---|---|---|
| .. | ||
| network_lsr | ||
| __init__.py | ||