mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-26 04:02:11 +01:00
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.