It's `databags.lookup`.  There is no `databags.get`.
This commit is contained in:
Jeff Dairiki 2022-02-24 07:20:01 -08:00 committed by GitHub
parent abe0593395
commit 2681ff4ded
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -19,5 +19,5 @@ to the main [databags :ref](../) documentation.
```python
def translate(pad, alt, key):
return pad.databags.get('i18n.%s.%s' % (alt, key), key)
return pad.databags.lookup('i18n.%s.%s' % (alt, key), key)
```