]> git.openstreetmap.org Git - nominatim.git/commitdiff
fix argument description for check_database
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 7 Oct 2021 07:49:13 +0000 (09:49 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 7 Oct 2021 07:49:13 +0000 (09:49 +0200)
nominatim/tokenizer/base.py

index 53289c7816e9a32ca671c2205d35f19b217d5d68..02bc312f18dc5e0bbe65fcacfc7e3564f805d441 100644 (file)
@@ -194,15 +194,13 @@ class AbstractTokenizer(ABC):
         """ Check that the database is set up correctly and ready for being
             queried.
 
-            Returns:
-              If an issue was found, return an error message with the
-              description of the issue as well as hints for the user on
-              how to resolve the issue.
-
             Arguments:
               config: Read-only object with configuration options.
 
-              Return `None`, if no issue was found.
+            Returns:
+              If an issue was found, return an error message with the
+              description of the issue as well as hints for the user on
+              how to resolve the issue. If everything is okay, return `None`.
         """
         pass