pwndbg.file.get() should return an empty bytes object, not an empty str object, when it fails. Fixes #18.

pull/22/head
Zach Riggle 10 years ago
parent dc051161e6
commit 021309dd0b

@ -38,4 +38,4 @@ def get(path):
with open(local_path,'rb') as f: with open(local_path,'rb') as f:
return f.read() return f.read()
except: except:
return '' return b''

Loading…
Cancel
Save