complete the Exception's list when catching JID error:
- Twisted JID constructor raises not only jid.InvalidFormat but also RuntimeError and AttributeError
This commit is contained in:
parent
3b84fc1765
commit
a6a967b2f0
5 changed files with 6 additions and 6 deletions
|
|
@ -151,7 +151,7 @@ class CommandExport(object):
|
|||
if not _jid.user or not _jid.host:
|
||||
raise jid.InvalidFormat
|
||||
_jid = _jid.userhostJID()
|
||||
except (jid.InvalidFormat, RuntimeError):
|
||||
except (RuntimeError, jid.InvalidFormat, AttributeError):
|
||||
log.info(u"invalid target ignored: %s" % (target,))
|
||||
continue
|
||||
process_prot = ExportCommandProtocol(self, _jid, options, profile)
|
||||
|
|
|
|||
Loading…
Reference in a new issue