mirror of
https://github.com/correl/SleekXMPP.git
synced 2025-02-25 19:10:36 +00:00
Fixed line lengths and trailing whitespace.
The pep8 command is now pleased.
This commit is contained in:
parent
7c10ff16fb
commit
6de87a1cbf
1 changed files with 37 additions and 36 deletions
|
@ -420,9 +420,9 @@ class XMLStream(object):
|
|||
|
||||
Arguments:
|
||||
threaded -- If threaded=True then event dispatcher will run
|
||||
in a separate thread, allowing for the stream to be used
|
||||
in the background for another application. Defaults
|
||||
to True.
|
||||
in a separate thread, allowing for the stream to be
|
||||
used in the background for another application.
|
||||
Defaults to True.
|
||||
|
||||
Event handlers and the send queue will be threaded
|
||||
regardless of this parameter's value.
|
||||
|
@ -608,7 +608,8 @@ class XMLStream(object):
|
|||
try:
|
||||
handler.run(args[0])
|
||||
except Exception as e:
|
||||
logging.exception('Error processing event handler: %s' % handler.name)
|
||||
error_msg = 'Error processing event handler: %s'
|
||||
logging.exception(error_msg % handler.name)
|
||||
args[0].exception(e)
|
||||
elif etype == 'schedule':
|
||||
try:
|
||||
|
|
Loading…
Add table
Reference in a new issue