Skip to main content

load_consent

Function load_consent 

Source
pub fn load_consent() -> Consent
Expand description

Read the consent record; any problem means no consent (never raises). A non-UTF-8 file is a UnicodeDecodeError in the oracle — a ValueError subclass, so it lands in the same tolerant default (unlike the state LOGS, whose readers catch only OSError and crash).