def getPriority(element):
 try:
  return getPriorityStrict(element)
 except ValueError:
  return Max

def getPriority ( element ) : try : return getPriorityStrict ( element ) except ValueError : return Max
get the priority of this element returns max if no priority is specified or the priority value is invalid .