Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def initialize_configuration_and_gitlab(self):
try:
gl = GitLab(self.args.config.strip())
c = Configuration(self.args.config.strip())
return gl, c
except ConfigFileNotFoundException as e:
logging.fatal('Aborting - config file not found at: %s', e)
sys.exit(1)
except TestRequestFailedException as e:
logging.fatal("Aborting - GitLab test request failed, details: '%s'", e)
sys.exit(2)