mirror of
				https://github.com/netinvent/npbackup.git
				synced 2025-10-31 07:47:02 +08:00 
			
		
		
		
	Upgrader: Improve error message
This commit is contained in:
		
							parent
							
								
									1537e0500a
								
							
						
					
					
						commit
						0d5a0ed164
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -158,6 +158,9 @@ def auto_upgrader( | |||
|         id_record = target | ||||
| 
 | ||||
|     file_info = requestor.data_model("upgrades", id_record=id_record) | ||||
|     if not file_info: | ||||
|         logger.error("Server didn't provide a file description") | ||||
|         return False | ||||
|     try: | ||||
|         sha256sum = file_info["sha256sum"] | ||||
|     except (KeyError, TypeError): | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue