mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 17:31:36 +00:00
fix crash when parsing request (issue #1969)
This commit is contained in:
parent
e64f630433
commit
d950cd7323
1 changed files with 5 additions and 1 deletions
|
@ -117,7 +117,11 @@ class PaymentRequest:
|
|||
self.error = "Empty request"
|
||||
return
|
||||
pr = pb2.PaymentRequest()
|
||||
pr.ParseFromString(self.raw)
|
||||
try:
|
||||
pr.ParseFromString(self.raw)
|
||||
except:
|
||||
self.error = "Error: Cannot parse payment request"
|
||||
return
|
||||
if not pr.signature:
|
||||
# the address will be dispayed as requestor
|
||||
self.requestor = None
|
||||
|
|
Loading…
Add table
Reference in a new issue