diff --git a/news/40.bugfix b/news/40.bugfix
new file mode 100644
index 0000000..8163863
--- /dev/null
+++ b/news/40.bugfix
@@ -0,0 +1,1 @@
+Fix an error when expanding an empty dictionary in PyCharm debugger
diff --git a/omegaconf/dictconfig.py b/omegaconf/dictconfig.py
index 5b35776..9f81527 100644
--- a/omegaconf/dictconfig.py
+++ b/omegaconf/dictconfig.py
@@ -68,6 +68,10 @@ class DictConfig(Config):
         :param key:
         :return:
         """
+        # PyCharm is sometimes inspecting __members__. returning None or throwing is
+        # confusing it and it prints an error when inspecting this object.
+        if key == "__members__":
+            return {}
         return self.get(key=key, default_value=None)
 
     def __getitem__(self, key):

diff --git a/tests/test_basic_ops_dict.py b/tests/test_basic_ops_dict.py
index 55af782..d968908 100644
--- a/tests/test_basic_ops_dict.py
+++ b/tests/test_basic_ops_dict.py
@@ -391,3 +391,9 @@ def test_get_with_default_from_struct_not_throwing():
     c = OmegaConf.create(dict(a=10, b=20))
     OmegaConf.set_struct(c, True)
     assert c.get("z", "default") == "default"
+
+
+def test_members():
+    # Make sure accessing __members__ does not return None or throw.
+    c = OmegaConf.create({"foo": {}})
+    assert c.__members__ == {}

Error expanding an DictConfig in pycharm debugger
OmegaConf.create(dict(foo={}))

expanding foo results in a stack trace in the debugger.

tests/test_basic_ops_dict.py::test_members
tests/test_basic_ops_dict.py::test_setattr_deep_value tests/test_basic_ops_dict.py::test_setattr_deep_from_empty tests/test_basic_ops_dict.py::test_setattr_deep_map tests/test_basic_ops_dict.py::test_getattr tests/test_basic_ops_dict.py::test_getattr_dict tests/test_basic_ops_dict.py::test_mandatory_value tests/test_basic_ops_dict.py::test_nested_dict_mandatory_value tests/test_basic_ops_dict.py::test_mandatory_with_default tests/test_basic_ops_dict.py::test_subscript_get tests/test_basic_ops_dict.py::test_subscript_set tests/test_basic_ops_dict.py::test_pretty_dict tests/test_basic_ops_dict.py::test_default_value tests/test_basic_ops_dict.py::test_get_default_value tests/test_basic_ops_dict.py::test_scientific_notation_float tests/test_basic_ops_dict.py::test_dict_get_with_default tests/test_basic_ops_dict.py::test_map_expansion tests/test_basic_ops_dict.py::test_items tests/test_basic_ops_dict.py::test_items2 tests/test_basic_ops_dict.py::test_items_with_interpolation tests/test_basic_ops_dict.py::test_dict_keys tests/test_basic_ops_dict.py::test_pickle_get_root tests/test_basic_ops_dict.py::test_iterate_dictionary tests/test_basic_ops_dict.py::test_dict_pop tests/test_basic_ops_dict.py::test_in_dict[conf0-a-True] tests/test_basic_ops_dict.py::test_in_dict[conf1-b-True] tests/test_basic_ops_dict.py::test_in_dict[conf2-c-False] tests/test_basic_ops_dict.py::test_in_dict[conf3-b-True] tests/test_basic_ops_dict.py::test_in_dict[conf4-b-False] tests/test_basic_ops_dict.py::test_in_dict[conf5-c-False] tests/test_basic_ops_dict.py::test_in_dict[conf6-b-False] tests/test_basic_ops_dict.py::test_in_dict[conf7-a-True] tests/test_basic_ops_dict.py::test_get_root tests/test_basic_ops_dict.py::test_get_root_of_merged tests/test_basic_ops_dict.py::test_dict_config tests/test_basic_ops_dict.py::test_dict_delitem tests/test_basic_ops_dict.py::test_dict_len tests/test_basic_ops_dict.py::test_dict_assign_illegal_value tests/test_basic_ops_dict.py::test_dict_assign_illegal_value_nested tests/test_basic_ops_dict.py::test_assign_dict_in_dict tests/test_basic_ops_dict.py::test_to_container tests/test_basic_ops_dict.py::test_pretty_without_resolve tests/test_basic_ops_dict.py::test_pretty_with_resolve tests/test_basic_ops_dict.py::test_instantiate_config_fails tests/test_basic_ops_dict.py::test_dir tests/test_basic_ops_dict.py::test_dict_eq[input10-input20] tests/test_basic_ops_dict.py::test_dict_eq[input11-input21] tests/test_basic_ops_dict.py::test_dict_eq[input12-input22] tests/test_basic_ops_dict.py::test_dict_eq[input13-input23] tests/test_basic_ops_dict.py::test_dict_eq[input14-input24] tests/test_basic_ops_dict.py::test_dict_eq[input15-input25] tests/test_basic_ops_dict.py::test_dict_eq[input16-input26] tests/test_basic_ops_dict.py::test_dict_eq[input17-input27] tests/test_basic_ops_dict.py::test_dict_eq_with_interpolation[input10-input20] tests/test_basic_ops_dict.py::test_dict_not_eq[input10-input20] tests/test_basic_ops_dict.py::test_dict_not_eq[input11-input21] tests/test_basic_ops_dict.py::test_dict_not_eq[input12-input22] tests/test_basic_ops_dict.py::test_dict_not_eq[input13-input23] tests/test_basic_ops_dict.py::test_dict_not_eq[input14-input24] tests/test_basic_ops_dict.py::test_dict_not_eq[input15-input25] tests/test_basic_ops_dict.py::test_dict_not_eq[input16-input26] tests/test_basic_ops_dict.py::test_dict_not_eq[input17-input27] tests/test_basic_ops_dict.py::test_dict_not_eq[input18-input28] tests/test_basic_ops_dict.py::test_config_eq_mismatch_types tests/test_basic_ops_dict.py::test_dict_not_eq_with_another_class tests/test_basic_ops_dict.py::test_hash tests/test_basic_ops_dict.py::test_get_with_default_from_struct_not_throwing