def check_encrypted_extra( # pylint: disable=no-self-use self, database: Database) -> None: # this will check whether json.loads(secure_extra) can succeed try: database.get_encrypted_extra() except Exception as ex: raise Exception( _("Extra field cannot be decoded by JSON. %{msg}s", msg=str(ex)))