mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-26 12:12:11 +01:00
don't fail on request processing, where the object has not yet a state
element. Happens only before submitting to api
This commit is contained in:
parent
7bd9ca485d
commit
b4b1ec7b64
@ -2971,7 +2971,7 @@ class Request:
|
|||||||
lines.append(' *** This request will get automatically accepted after '+self.accept_at+' ! ***\n')
|
lines.append(' *** This request will get automatically accepted after '+self.accept_at+' ! ***\n')
|
||||||
if self.priority in [ 'critical', 'important' ] and self.state.name in [ 'new', 'review' ]:
|
if self.priority in [ 'critical', 'important' ] and self.state.name in [ 'new', 'review' ]:
|
||||||
lines.append(' *** This request has classified as '+self.priority+' ! ***\n')
|
lines.append(' *** This request has classified as '+self.priority+' ! ***\n')
|
||||||
if self.state.approver and self.state.name == 'review':
|
if self.state and self.state.approver and self.state.name == 'review':
|
||||||
lines.append(' *** This request got approved by '+self.state.approver+'. It will get automatically accepted after last review got accepted! ***\n')
|
lines.append(' *** This request got approved by '+self.state.approver+'. It will get automatically accepted after last review got accepted! ***\n')
|
||||||
|
|
||||||
for action in self.actions:
|
for action in self.actions:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user