Skip to content

Commit

Permalink
Reformat omitted files in bin.src
Browse files Browse the repository at this point in the history
  • Loading branch information
mxk62 committed Feb 23, 2022
1 parent 6003f51 commit c4136fe
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions bin.src/SConscript
@@ -1,3 +1,4 @@
# -*- python -*-
from lsst.sconsUtils import scripts

scripts.BasicSConscript.shebang()
2 changes: 1 addition & 1 deletion bin.src/bps
Expand Up @@ -24,5 +24,5 @@ import sys

from lsst.ctrl.bps.cli.bps import main

if __name__ == '__main__':
if __name__ == "__main__":
sys.exit(main())
12 changes: 9 additions & 3 deletions bin.src/panda_auth
Expand Up @@ -25,12 +25,18 @@ import sys

from lsst.utils import doImport

if __name__ == '__main__':
if __name__ == "__main__":
# Check for env vars before importing code because the LSST click
# code hides that the problem is missing environment variables required
# during imports of third-party modules.
for key in ["PANDA_AUTH", "PANDA_VERIFY_HOST", "PANDA_AUTH_VO", "PANDA_URL_SSL", "PANDA_URL",
"IDDS_CONFIG"]:
for key in [
"PANDA_AUTH",
"PANDA_VERIFY_HOST",
"PANDA_AUTH_VO",
"PANDA_URL_SSL",
"PANDA_URL",
"IDDS_CONFIG",
]:
if key not in os.environ:
raise OSError(f"Missing environment variable {key}")

Expand Down

0 comments on commit c4136fe

Please sign in to comment.