Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
binwalk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-gitdep
binwalk
Commits
26a0ec9b
Commit
26a0ec9b
authored
Mar 07, 2014
by
devttys0
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #32 from liske/common.core
Fix wrong class name used to print warnings.
parents
070b696b
a86a1ada
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
plugin.py
src/binwalk/core/plugin.py
+3
-3
No files found.
src/binwalk/core/plugin.py
View file @
26a0ec9b
...
...
@@ -125,7 +125,7 @@ class Plugins(object):
except
KeyboardInterrupt
as
e
:
raise
e
except
Exception
as
e
:
binwalk
.
co
mmon
.
core
.
warning
(
"
%
s.
%
s failed:
%
s"
%
(
callback
.
__module__
,
callback
.
__name__
,
e
))
binwalk
.
co
re
.
common
.
warning
(
"
%
s.
%
s failed:
%
s"
%
(
callback
.
__module__
,
callback
.
__name__
,
e
))
def
_find_plugin_class
(
self
,
plugin
):
for
(
name
,
klass
)
in
inspect
.
getmembers
(
plugin
,
inspect
.
isclass
):
...
...
@@ -187,7 +187,7 @@ class Plugins(object):
except
KeyboardInterrupt
as
e
:
raise
e
except
Exception
as
e
:
binwalk
.
co
mmon
.
core
.
warning
(
"Error loading plugin '
%
s':
%
s"
%
(
file_name
,
str
(
e
)))
binwalk
.
co
re
.
common
.
warning
(
"Error loading plugin '
%
s':
%
s"
%
(
file_name
,
str
(
e
)))
plugins
[
key
][
'enabled'
][
module
]
=
False
try
:
...
...
@@ -244,7 +244,7 @@ class Plugins(object):
except
KeyboardInterrupt
as
e
:
raise
e
except
Exception
as
e
:
binwalk
.
co
mmon
.
core
.
warning
(
"Failed to load plugin module '
%
s':
%
s"
%
(
module
,
str
(
e
)))
binwalk
.
co
re
.
common
.
warning
(
"Failed to load plugin module '
%
s':
%
s"
%
(
module
,
str
(
e
)))
def
pre_scan_callbacks
(
self
,
obj
):
return
self
.
_call_plugins
(
self
.
pre_scan
,
None
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment