From 00ecb4de150a7c5f8dbd8acf606cfb990b4a8e67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 12 Sep 2014 08:57:02 +0200 Subject: [PATCH] - fix crash with not existing priorities --- osc/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/core.py b/osc/core.py index 163d6487..a468c644 100644 --- a/osc/core.py +++ b/osc/core.py @@ -2624,7 +2624,7 @@ class Request: self.reviews.append(ReviewState(review)) for history_element in root.findall('history'): 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() if not root.find('accept_at') is None and root.find('accept_at').text: self.accept_at = root.find('accept_at').text.strip()