1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-26 04:02:11 +01:00
lethliel 877d5e50b6 fix triggerreason on empty packages.
When running osc triggerreason on newly created (empty) packages
the command failes with AttributeError: 'NoneType' object has no attribute 'text'
because root.find('explain') is NoneType.

Solution:

Check if root.find('explain') is None and print "No triggerreaseon found".
In this case also do not try to get the triggertime. It will result in the same error.
2019-05-15 11:45:20 +02:00
..
2009-12-03 19:19:53 +01:00
2014-08-12 15:01:16 +02:00
2019-05-14 10:01:02 +02:00
2019-04-07 10:06:24 -05:00
2018-11-06 10:35:38 +01:00
2019-04-26 10:49:03 +02:00