Only catches "File Not Found" error while deleting a value in dodb.cr.
This commit is contained in:
		
							parent
							
								
									8dfbe28986
								
							
						
					
					
						commit
						b590cb9e0f
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		|  | @ -336,8 +336,7 @@ class DODB::DataBase(V) < DODB::Storage(V) | ||||||
| 
 | 
 | ||||||
| 		begin | 		begin | ||||||
| 			::File.delete file_path key | 			::File.delete file_path key | ||||||
| 		rescue | 		rescue File::NotFoundError | ||||||
| 			# FIXME: Only intercept “no such file" errors |  | ||||||
| 		end | 		end | ||||||
| 
 | 
 | ||||||
| 		remove_indexes key, value | 		remove_indexes key, value | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue