add comments to suppress useless warnings from LGTM

This commit is contained in:
Axel Kohlmeyer
2021-05-15 23:35:14 -04:00
parent 185664824e
commit fde2295685
5 changed files with 20 additions and 20 deletions

View File

@ -123,7 +123,7 @@ try:
sys.argv = ["setup.py","install"] # as if had run "python setup.py install"
setup_kwargs['data_files']=[(os.path.join(get_python_lib(), 'lammps'), [args.lib])]
setup(**setup_kwargs)
except:
except: # lgtm [py/catch-base-exception]
tryuser=True
print ("Installation into global site-packages folder failed.\nTrying user folder %s now." % site.USER_SITE)
@ -132,5 +132,5 @@ if tryuser:
sys.argv = ["setup.py","install","--user"] # as if had run "python setup.py install --user"
setup_kwargs['data_files']=[(os.path.join(site.USER_SITE, 'lammps'), [args.lib])]
setup(**setup_kwargs)
except:
except: # lgtm [py/catch-base-exception]
print("Installation into user site package folder failed.")