We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0046896 commit 457949fCopy full SHA for 457949f
sdbus_async/networkmanager/settings/base.py
@@ -82,10 +82,15 @@ def from_dbus(
82
) -> NetworkManagerSettingsMixin:
83
"""TODO: Add proper docstring"""
84
reverse_mapping = cls.setting_name_reverse_mapping()
85
- unvarianted_options = {
86
- reverse_mapping[k]: cls._unpack_variant(k, *v)
87
- for k, v in dbus_dict.items()
88
- }
+ unvarianted_options = {}
+ for k, v in dbus_dict.items():
+ try:
+ reverse_name = reverse_mapping[k]
89
+ except KeyError:
90
+ continue
91
+
92
+ unvarianted_options[reverse_name] = cls._unpack_variant(k, *v)
93
94
return cls(**unvarianted_options)
95
96
@classmethod
0 commit comments