Skip to content

Commit

Permalink
v1.1.2b
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Oct 12, 2024
1 parent 07563b0 commit f753118
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions filemac/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ def word_to_pdf(self):
def word2pdf_extra(obj, outf=None):
'''For window users since it requires Microsoft word to be installed'''
for file in obj:
file = os.path.abspath(file)
if file.split('.')[-1] not in ('doc', 'docx'):
logger.error(f"{RED}File is not a word file{RESET}")
sys.exit(1)
Expand Down

0 comments on commit f753118

Please sign in to comment.