Skip to content

Commit

Permalink
fix: version check backward compatibility (frappe#1409)
Browse files Browse the repository at this point in the history
This code wasn't triggering because VersionNotFound exception gets
thrown before it ever reaches to this point.
  • Loading branch information
ankush authored Jan 2, 2023
1 parent ba853c9 commit 23eede5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bench/utils/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def get_current_version(app, bench_path="."):
with open(init_path) as f:
current_version = get_version_from_string(f.read())

except AttributeError:
except (AttributeError, VersionNotFound):
# backward compatibility
with open(setup_path) as f:
current_version = get_version_from_string(f.read(), field="version")
Expand Down

0 comments on commit 23eede5

Please sign in to comment.