Skip to content

Commit

Permalink
- fix crash with not existing priorities
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Sep 12, 2014
1 parent 1c9123b commit 9adf88c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osc/core.py
Expand Up @@ -2624,7 +2624,7 @@ def read(self, root):
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()
Expand Down

0 comments on commit 9adf88c

Please sign in to comment.