|  | @@ -426,12 +426,13 @@ def get_aardbei_people(
 | 
	
		
			
			| 426 | 426 |      AardbeiPerson objects. Return a AardbeiSyncError if something fails."""
 | 
	
		
			
			| 427 | 427 |      try:
 | 
	
		
			
			| 428 | 428 |          resp: requests.Response = requests.get(
 | 
	
		
			
			| 429 |  | -            f"{AARDBEI_ENDPOINT}/api/groups/0/",
 | 
	
		
			
			|  | 429 | +            f"{endpoint}/api/groups/0/",
 | 
	
		
			
			| 430 | 430 |              headers={"Authorization": f"Group {token}"},
 | 
	
		
			
			| 431 | 431 |          )
 | 
	
		
			
			| 432 | 432 |          resp.raise_for_status()
 | 
	
		
			
			| 433 | 433 |  
 | 
	
		
			
			| 434 |  | -    except requests.ConnectionError:
 | 
	
		
			
			|  | 434 | +    except requests.ConnectionError as e:
 | 
	
		
			
			|  | 435 | +        log.exception("Can't connect to endpoint %s", endpoint)
 | 
	
		
			
			| 435 | 436 |          return AardbeiSyncError.CantConnect
 | 
	
		
			
			| 436 | 437 |  
 | 
	
		
			
			| 437 | 438 |      except requests.HTTPError:
 |