Return error under error condition
This commit is contained in:
		
							parent
							
								
									56721d63b8
								
							
						
					
					
						commit
						4bd76ef2ff
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -114,6 +114,7 @@ static PyObject * idle_getIdleSec(PyObject *self, PyObject *args)
 | 
				
			||||||
    else
 | 
					    else
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        printf("Couldn't grab properties of system\n");
 | 
					        printf("Couldn't grab properties of system\n");
 | 
				
			||||||
 | 
					        return NULL;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (obj)
 | 
					    if (obj)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue