Skip to content

Commit

Permalink
Fix Hardrules crash without metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
ZJaume committed Aug 29, 2023
1 parent fdf7a5a commit 0dd8652
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Bicleaner Hardrules 2.9.1:
* Fix hardrules crash without metadata.

Bicleaner Hardrules 2.9.0:
* Accept HF identifiers in `--metadata` argument.

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "bicleaner-hardrules"
version = "2.9.0"
version = "2.9.1"
authors = [
{ name="Prompsit Language Engineering", email="[email protected]" },
]
Expand Down
2 changes: 1 addition & 1 deletion src/hardrules/bicleaner_hardrules.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def initialization():


def real_metadata_path(path):
if os.path.exists(path):
if path is None or os.path.exists(path):
# local path, we just use it, return abs path
return path
elif not path.startswith('bitextor/bicleaner-ai'):
Expand Down

0 comments on commit 0dd8652

Please sign in to comment.