mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-23 18:52:10 +01:00
- fix crash with not existing priorities
This commit is contained in:
parent
1c9123bae8
commit
9adf88c769
@ -2624,7 +2624,7 @@ class Request:
|
|||||||
self.reviews.append(ReviewState(review))
|
self.reviews.append(ReviewState(review))
|
||||||
for history_element in root.findall('history'):
|
for history_element in root.findall('history'):
|
||||||
self.statehistory.append(RequestHistory(history_element))
|
self.statehistory.append(RequestHistory(history_element))
|
||||||
if not root.find('priority') is None:
|
if not root.find('priority') is None and root.find('priority').text:
|
||||||
self.priority = root.find('priority').text.strip()
|
self.priority = root.find('priority').text.strip()
|
||||||
if not root.find('accept_at') is None and root.find('accept_at').text:
|
if not root.find('accept_at') is None and root.find('accept_at').text:
|
||||||
self.accept_at = root.find('accept_at').text.strip()
|
self.accept_at = root.find('accept_at').text.strip()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user