Commit 61d9ccc4 authored by Vincent Pelletier's avatar Vincent Pelletier

Ignore ill-formed revision numbers in getInstalledBusinessTemplate.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39103 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 717513af
...@@ -129,7 +129,11 @@ class TemplateTool (BaseTool): ...@@ -129,7 +129,11 @@ class TemplateTool (BaseTool):
latest_bt = bt latest_bt = bt
break break
elif strict is False and installation_state == 'replaced': elif strict is False and installation_state == 'replaced':
revision = int(bt.getRevision()) revision = bt.getRevision()
try:
revision = int(revision)
except ValueError:
continue
if revision > latest_revision: if revision > latest_revision:
latest_bt = bt latest_bt = bt
return latest_bt return latest_bt
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment