Feature 10296 Pip Standardization
[osm/osmclient.git] / osmclient / scripts / osm.py
index 603d373..4af0dad 100755 (executable)
@@ -384,7 +384,7 @@ def ns_list(ctx, filter, long):
         project_list = ctx.obj.project.list()
         try:
             vim_list = ctx.obj.vim.list()
-        except:
+        except Exception:
             vim_list = []
     else:
         table = PrettyTable(
@@ -3756,7 +3756,8 @@ def sdnc_show(ctx, name):
 @click.option(
     "--k8s-nets",
     prompt=True,
-    help='list of VIM networks, in JSON inline format, where the cluster is accessible via L3 routing, e.g. "{(k8s_net1:vim_network1) [,(k8s_net2:vim_network2) ...]}"',
+    help='''list of VIM networks, in JSON inline format, where the cluster is
+    accessible via L3 routing, e.g. "{(k8s_net1:vim_network1) [,(k8s_net2:vim_network2) ...]}"''',
 )
 @click.option("--description", default=None, help="human readable description")
 @click.option(
@@ -3812,7 +3813,8 @@ def k8scluster_add(
 @click.option("--vim", help="VIM target, the VIM where the cluster resides")
 @click.option(
     "--k8s-nets",
-    help='list of VIM networks, in JSON inline format, where the cluster is accessible via L3 routing, e.g. "{(k8s_net1:vim_network1) [,(k8s_net2:vim_network2) ...]}"',
+    help='''list of VIM networks, in JSON inline format, where the cluster is accessible
+    via L3 routing, e.g. "{(k8s_net1:vim_network1) [,(k8s_net2:vim_network2) ...]}"''',
 )
 @click.option("--description", help="human readable description")
 @click.option(
@@ -3920,7 +3922,7 @@ def k8scluster_list(ctx, filter, literal, long):
         )
     try:
         vim_list = ctx.obj.vim.list()
-    except:
+    except Exception:
         vim_list = []
     for cluster in resp:
         logger.debug("Cluster details: {}".format(yaml.safe_dump(cluster)))