Skip to content

Instantly share code, notes, and snippets.

@ryandotclair
Created December 11, 2015 03:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryandotclair/78a80c0b26c53b6eadca to your computer and use it in GitHub Desktop.
Save ryandotclair/78a80c0b26c53b6eadca to your computer and use it in GitHub Desktop.
try4_sr.py
except ValueError:
logger.critical(
"Login failure. $SRUSER and $SRPASS credentials failed. Please confirm the environmental variables are "
"properly set with correct username/password")
sys.exit(1)
except Exception as e:
logger.critical(
"Unisphere couldn't be reached. Please confirm SRUNILOCATION environment variable is properly set and "
"Unisphere is up and running.. Details: {}".format(e))
sys.exit(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment