mirror of
https://github.com/alvierahman90/otfm-python.git
synced 2025-12-19 04:24:00 +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
|
# get macros
|
||||||
|
|
||||||
|
try:
|
||||||
with open(args.macros_file) as file:
|
with open(args.macros_file) as file:
|
||||||
macros = get_macros(file.read())
|
macros = get_macros(file.read())
|
||||||
|
except FileNotFoundError:
|
||||||
|
macros = {}
|
||||||
|
|
||||||
# get tokens (file contents)
|
# get tokens (file contents)
|
||||||
if args.input == "-":
|
if args.input == "-":
|
||||||
|
|||||||
Reference in New Issue
Block a user