better exception
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Run testing on the backend code / Build (pull_request) Has been cancelled
				
			
		
			
				
	
				Build and deploy the backend to staging / Build and push image (pull_request) Successful in 2m7s
				
			
		
			
				
	
				Run linting on the backend code / Build (pull_request) Has been cancelled
				
			
		
			
				
	
				Build and deploy the backend to staging / Deploy to staging (pull_request) Successful in 24s
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Run testing on the backend code / Build (pull_request) Has been cancelled
				
			Build and deploy the backend to staging / Build and push image (pull_request) Successful in 2m7s
				
			Run linting on the backend code / Build (pull_request) Has been cancelled
				
			Build and deploy the backend to staging / Deploy to staging (pull_request) Successful in 24s
				
			This commit is contained in:
		| @@ -335,8 +335,10 @@ def fill_cache(): | |||||||
|                 with open(entry.path, 'r') as f: |                 with open(entry.path, 'r') as f: | ||||||
|                     try : |                     try : | ||||||
|                         json_data = json.load(f) |                         json_data = json.load(f) | ||||||
|  |                     except json.decoder.JSONDecodeError as exc : | ||||||
|  |                         raise Exception(f'Failed to parse file {f}') from exc | ||||||
|                     except Exception as exc : |                     except Exception as exc : | ||||||
|                         raise json.JSONDecodeError(f'Failed to parse file {f}') from exc |                         raise Exception(f'An unexpected error occured while parsing file {f}') from exc | ||||||
|          |          | ||||||
|  |  | ||||||
|                 # Fill the cache with the query and key |                 # Fill the cache with the query and key | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user