mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 03:14:22 +00:00
Merge pull request #118 from jasonanovak/protobufs
Add error checking to ViewProtobuf
This commit is contained in:
commit
69a40c8179
@ -389,8 +389,11 @@ class ViewProtobuf:
|
||||
stdin=subprocess.PIPE,
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE)
|
||||
out, _ = p.communicate(input=content)
|
||||
out, err = p.communicate(input=content)
|
||||
if out:
|
||||
return out
|
||||
else:
|
||||
return err
|
||||
|
||||
def __call__(self, hdrs, content, limit):
|
||||
decoded = self.decode_protobuf(content)
|
||||
|
Loading…
Reference in New Issue
Block a user