Clean up, remove compat with py < 3.6
[pyi2ncommon] / src / dial.py
index 30e930e..a87117e 100644 (file)
@@ -140,6 +140,8 @@ def arnied_dial_doc(prid="P1", block=False):
     :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)
     """
@@ -162,6 +164,8 @@ def arnied_dial_permanent(prid="P1", block=False):
     :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)
     """
@@ -206,7 +210,7 @@ def dialout(mode=DIALOUT_MODE_DEFAULT, prid="P1", block=True):
     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