don't error if macros file does not exist

This commit is contained in:
Akbar Rahman 2021-03-19 11:39:33 +00:00
parent 77bc93456a
commit a3d80f5703

View File

@ -230,8 +230,11 @@ def main(args):
# get macros
with open(args.macros_file) as file:
macros = get_macros(file.read())
try:
with open(args.macros_file) as file:
macros = get_macros(file.read())
except FileNotFoundError:
macros = {}
# get tokens (file contents)
if args.input == "-":