Skip to content

Commit

Permalink
Fix/wrong cwd when using wildcard (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
L-M-Sherlock authored Aug 13, 2023
1 parent e326562 commit 2e35082
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 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 = "FSRS-Optimizer"
version = "4.9.0"
version = "4.9.1"
readme = "README.md"
dependencies = [
"matplotlib>=3.7.0",
Expand Down
11 changes: 10 additions & 1 deletion src/fsrs_optimizer/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,5 +174,14 @@ def remembered_fallback_prompt(key: str, pretty: str = None):
os.chdir(curdir)
continue
else:
process(filename)
try:
print(f"Processing {filename}")
process(filename)
except Exception as e:
print(e)
print(f"Failed to process {filename}")
finally:
plt.close('all')
os.chdir(curdir)
continue

0 comments on commit 2e35082

Please sign in to comment.