We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b787a9 commit 06a9ae8Copy full SHA for 06a9ae8
mati/resources/verifications.py
@@ -88,9 +88,10 @@ def proof_of_life_document(self) -> Optional[Liveness]:
88
@property
89
def proof_of_life_url(self) -> Optional[str]:
90
pol = self.proof_of_life_document
91
- return pol.data.get('video_url') or pol.data.get( # type: ignore
92
- 'selfie_photo_url'
93
- )
+ if not pol:
+ return None
+ data = getattr(pol, 'data', {}) or {}
94
+ return data.get('video_url') or data.get('selfie_photo_url')
95
96
97
def proof_of_life_errors(self) -> List[Errors]:
0 commit comments