8000 Smol fixes by XVilka · Pull Request #15 · BinaryAnalysisPlatform/bap-python · GitHub
[go: up one dir, main page]

Skip to content

Smol fixes #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/bap/rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ def load(self):
if self.msg is None:
self.msg = self.bap.get_resource(self.ident)
if not self._name in self.msg:
if 'error' in msg:
if 'error' in self.msg:
raise ServerError(response)
else:
msg = "Expected {0} msg but got {1}".format(
< 6729 span class='blob-code-inner blob-code-marker js-skip-tagsearch' data-code-marker="-"> self._name, msg)
self._name, self.msg)
raise RuntimeError(msg)

def get(self, child):
Expand All @@ -126,7 +126,7 @@ def get(self, child):

class Project(Resource):
def __init__(self, ident, bap):
super(Image,self).__init__('program', ident, bap)
super(Image,self).__init__('program', ident, bap) # pylint: disable=bad-super-call

def load_program(self):
self.program = bir.loads(self.get('program'))
Expand Down
0