mirror of
https://github.com/alvierahman90/otfm-python.git
synced 2025-10-13 07:54:32 +00:00
don't error if macros file does not exist
This commit is contained in:
@@ -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 == "-":
|
||||
|
Reference in New Issue
Block a user