Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _parser_parse_args(self):
"""
overwritten method of class Memacs
all additional arguments are parsed in here
"""
Memacs._parser_parse_args(self)
if not (os.path.exists(self._args.smsxmlfile) or \
os.access(self._args.smsxmlfile, os.R_OK)):
self._parser.error("input file not found or not readable")
if self._args.orgcontactsfile:
if not (os.path.exists(self._args.orgcontactsfile) or \
os.access(self._args.orgcontactsfile, os.R_OK)):
self._parser.error("Org-contacts file not found or not readable")
self._numberdict = parse_org_contact_file(self._args.orgcontactsfile)
def _parser_parse_args(self):
"""
overwritten method of class Memacs
all additional arguments are parsed in here
"""
Memacs._parser_parse_args(self)
if self._args.orgcontactsfile:
if not (os.path.exists(self._args.orgcontactsfile) or \
os.access(self._args.orgcontactsfile, os.R_OK)):
self._parser.error("Org-contacts file not found or not readable")
self._numberdict = parse_org_contact_file(self._args.orgcontactsfile)
else:
self._numberdict = {}