:param prid: Provider id, default *P1*. It is up to the caller to ensure
this is a valid provider id.
:type prid: str
+ :param block: block execution until system is online
+ :type block: bool
:returns: Whether the ``doc`` command succeeded.
:rtype: int (dial result as above)
"""
:param prid: Provider id, default *P1*. It is up to the caller to ensure
this is a valid provider id.
:type prid: str
+ :param block: block execution until system is online
+ :type block: bool
:returns: Whether the ``tell-connd`` command succeeded.
:rtype: int (dial result as above)
"""
elif isinstance(mode, str) is True:
try:
dmode = DIALOUT_MODE_BY_NAME[mode]
- except:
+ except Exception:
log.error("invalid online mode name ā%sā requested" % mode)
pass