Skip to content

Commit

Permalink
minor bug fix and version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandip117 committed Jan 10, 2024
1 parent a29f5fd commit 5a225a9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions image_textRemove.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import os
import sys

__version__ = '1.1.0'
__version__ = '1.1.2'

DISPLAY_TITLE = r"""
_ _ _ _ ______
Expand Down Expand Up @@ -85,8 +85,11 @@ def main(options: Namespace, inputdir: Path, outputdir: Path):
for json_path in l_json_path:
if json_path.name == options.filterTextFromJSON:
json_data_path = json_path
f = open(json_data_path, 'r')
data = json.load(f)
try:
f = open(json_data_path, 'r')
data = json.load(f)
except Exception as ex:
print("Error: ",ex)
box_list = []
mapper = PathMapper.file_mapper(inputdir, outputdir, glob=f"**/*.{options.fileFilter}", fail_if_empty=False)
for input_file, output_file in mapper:
Expand Down

0 comments on commit 5a225a9

Please sign in to comment.