mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[FIX] runbot: reintroduce try exept in get_params
This commit was initially there for tests, when no repo exist, but get_param will also crash if commit does not exist, wich may be a problem on user rebuild.
This commit is contained in:
parent
6681e40231
commit
12febd1920
@ -380,8 +380,10 @@ class runbot_build(models.Model):
|
||||
build.build_age = int(time.time() - dt2time(build.build_start))
|
||||
|
||||
def _get_params(self):
|
||||
message = False
|
||||
message = self.repo_id._git(['show', '-s', self.name])
|
||||
try:
|
||||
message = self.repo_id._git(['show', '-s', self.name])
|
||||
except CalledProcessError:
|
||||
message = ''
|
||||
params = defaultdict(lambda: defaultdict(str))
|
||||
if message:
|
||||
regex = re.compile(r'^[\t ]*Runbot-dependency: ([A-Za-z0-9\-_]+/[A-Za-z0-9\-_]+):([0-9A-Fa-f\-]*) *(#.*)?$', re.M) # dep:repo:hash #comment
|
||||
|
Loading…
Reference in New Issue
Block a user