Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefane Fermigier
neo
Commits
af8a8370
Commit
af8a8370
authored
Dec 12, 2015
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
neolog: fix crash on unknown packets
parent
9e543d76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
neo/scripts/neolog.py
neo/scripts/neolog.py
+4
-2
No files found.
neo/scripts/neolog.py
View file @
af8a8370
...
@@ -119,9 +119,11 @@ class Log(object):
...
@@ -119,9 +119,11 @@ class Log(object):
self
.
_reload
(
date
)
self
.
_reload
(
date
)
try
:
try
:
p
=
self
.
Packets
[
code
]
p
=
self
.
Packets
[
code
]
msg
=
p
.
__name__
except
KeyError
:
except
KeyError
:
Packets
[
code
]
=
p
=
type
(
'UnknownPacket[%u]'
%
code
,
(
object
,),
{})
msg
=
'UnknownPacket[%u]'
%
code
msg
=
[
'#0x%04x %-30s %s'
%
(
msg_id
,
p
.
__name__
,
peer
)]
body
=
None
msg
=
[
'#0x%04x %-30s %s'
%
(
msg_id
,
msg
,
peer
)]
if
body
is
not
None
:
if
body
is
not
None
:
logger
=
getattr
(
self
,
p
.
handler_method_name
,
None
)
logger
=
getattr
(
self
,
p
.
handler_method_name
,
None
)
if
logger
or
self
.
_decode_all
:
if
logger
or
self
.
_decode_all
:
...
...
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