Commits

Michał Górny committed 64e7273

Fix __lt__ failure with external actions.

  • Participants
  • Parent commits 19011b7

Comments (0)

Files changed (1)

File lib/flaggie/action.py

 				self.args.add(arg)
 
 		def __lt__(self, other):
-			idx = [Action.order.index(x.__class__) for x in (self, other)]
+			try:
+				idx = [Action.order.index(x.__class__) for x in (self, other)]
+			except ValueError: # an external class
+				return True
 			return idx[0] < idx[1]
 
 	class EffectiveEntryOp(BaseAction):