From 8862dc5ba080914dd17b23439878d57b6c6a9de1 Mon Sep 17 00:00:00 2001
From: Amir MOHAMMADI <amir.mohammadi@idiap.ch>
Date: Mon, 13 Jun 2022 11:53:22 +0200
Subject: [PATCH] [doc][rc] Encourage usage of get in rc

---
 doc/rc.rst | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/doc/rc.rst b/doc/rc.rst
index 3dc0c60..75e1d96 100644
--- a/doc/rc.rst
+++ b/doc/rc.rst
@@ -57,13 +57,11 @@ user's computer:
 
    >>> from bob.extension import rc
    >>> class AtntDatabase:
-   ...     def __init__(self, directory=rc['bob.db.atnt.directory']):
+   ...     def __init__(self, directory=rc.get('bob.db.atnt.directory')):
    ...         self.directory = directory
 
 
-:py:attr:`bob.extension.rc` is a dictionary which returns ``None`` for
-non-existing keys so you don't have to worry about exception handling for
-non-existing keys.
+:py:attr:`bob.extension.rc` is a dictionary.
 
 .. note::
 
-- 
GitLab