Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
poezio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
178
Issues
178
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poezio
poezio
Commits
db47dbbc
Commit
db47dbbc
authored
Jun 22, 2016
by
mathieui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a traceback on adhoc
parent
ce915a86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
poezio/core/handlers.py
poezio/core/handlers.py
+2
-2
No files found.
poezio/core/handlers.py
View file @
db47dbbc
...
...
@@ -1224,7 +1224,7 @@ class HandlerCore:
### Ad-hoc commands
def
on_
next_adhoc_step
(
self
,
iq
,
adhoc_session
):
def
next_adhoc_step
(
self
,
iq
,
adhoc_session
):
status
=
iq
[
'command'
][
'status'
]
xform
=
iq
.
xml
.
find
(
'{http://jabber.org/protocol/commands}command/{jabber:x:data}x'
)
if
xform
is
not
None
:
...
...
@@ -1257,7 +1257,7 @@ class HandlerCore:
notes
=
'
\n
'
.
join
([
note
[
1
]
for
note
in
iq
[
'command'
][
'notes'
]])
self
.
core
.
information
(
"Adhoc command %s: %s"
%
(
status
,
notes
),
"Info"
)
def
on_
adhoc_error
(
self
,
iq
,
adhoc_session
):
def
adhoc_error
(
self
,
iq
,
adhoc_session
):
self
.
core
.
xmpp
.
plugin
[
'xep_0050'
].
terminate_command
(
adhoc_session
)
error_message
=
self
.
core
.
get_error_message
(
iq
)
self
.
core
.
information
(
"An error occured while executing the command: %s"
%
(
error_message
),
...
...
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