Skip to content
This repository has been archived by the owner on Feb 17, 2019. It is now read-only.

Add try on __main__.py #33

Open
arthurazs opened this issue Dec 26, 2017 · 0 comments
Open

Add try on __main__.py #33

arthurazs opened this issue Dec 26, 2017 · 0 comments
Assignees
Labels

Comments

@arthurazs
Copy link
Owner

This is an ideia.

Description

Remove raise raise SystemExit(-1), and only raise true exceptions. Handle the exceptions on __main__.py:

dotapatch = Dotapatch(args.file, args.template)

try:
    sys_exit(dotapatch.parse())
except (ExceptionType1, ExceptionType1, ExceptionTypeEtc) as err:
    handle(err)
@arthurazs arthurazs self-assigned this Dec 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant