Skip to content

Commit

Permalink
Fix/skip files with inadequate reviews (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
L-M-Sherlock authored Jul 26, 2023
1 parent d00cfb6 commit fb81864
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion package/fsrs4anki_optimizer/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,11 @@ def remembered_fallback_prompt(key: str, pretty: str = None):
files = [f for f in os.listdir(filename) if f.lower().endswith('.apkg')]
files = [os.path.join(filename, f) for f in files]
for file_path in files:
process(file_path)
try:
process(file_path)
except Exception as e:
print(f"Failed to process {file_path}")
continue
else:
process(filename)

2 changes: 1 addition & 1 deletion package/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "fsrs4anki_optimizer"
version = "4.3.2"
version = "4.4.1"
readme = "README.md"
dependencies = [
"matplotlib>=3.7.0",
Expand Down

0 comments on commit fb81864

Please sign in to comment.