Skip to content

Commit

Permalink
Remove error if running codegen.py from a IDE.
Browse files Browse the repository at this point in the history
  • Loading branch information
Candoran2 committed Oct 13, 2023
1 parent 9d1796a commit 99cbdf7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,4 +428,8 @@ def generate_classes(gen_dir, silent):
parser.add_argument('-g', '--generated-dir', default="generated")
parser.add_argument('--silent', action='store_true')
args = parser.parse_args()
exit(generate_classes(gen_dir=args.generated_dir, silent=args.silent))
exit_code = generate_classes(gen_dir=args.generated_dir, silent=args.silent)
try:
exit(exit_code)
except NameError:
pass

0 comments on commit 99cbdf7

Please sign in to comment.