File: arm4module.c
Function: ArmCorrelator_get_flags
Error: returning (PyObject*)NULL without setting an exception
515 static PyObject *
516 ArmCorrelator_get_flags (ArmCorrelator *self, PyObject *args)
517 {
518 
519     arm_error_t status;
520     arm_int32_t flag_num;
521 	arm_boolean_t flag;
522 
523 	/*
524 	 * Supported calling signatures:
525 	 *	get_flags (flags)
526 	 */
527     if (!PyArg_ParseTuple(args, PARSE_INT32_FMT, &flag_num))
when PyArg_ParseTuple() succeeds
taking False path
528         return NULL;
529 
530 	status = arm_get_correlator_flags(
531 		&(self->arm_correlator),
532 		flag_num,
533 		&flag);
534 	if (GETSTATE0->enableExceptions && (status != ARM_SUCCESS))
when considering range: -0x80000000 <= value <= -1
when considering range: -0x80000000 <= value <= -1
taking True path
535 	{
536 		set_arm_error (status, "arm_get_correlator_flags");
537 		return NULL;
538 	}
539 
540 	/* Return the flag value */
541 	return PyBool_FromLong (flag);
542 }
returning (PyObject*)NULL without setting an exception
found 3 similar trace(s) to this