fix(plugin): normal queue will crash due to key not found
This commit is contained in:
		
							parent
							
								
									8c2440ad8b
								
							
						
					
					
						commit
						536fdecb67
					
				@ -280,7 +280,7 @@ async def upload_file(prompt_id, filename, subfolder=None, content_type="image/p
 | 
				
			|||||||
        print("upload file response", response.status_code)
 | 
					        print("upload file response", response.status_code)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def have_pending_upload(prompt_id):
 | 
					def have_pending_upload(prompt_id):
 | 
				
			||||||
    if 'uploading_nodes' in prompt_metadata[prompt_id] and len(prompt_metadata[prompt_id]['uploading_nodes']) > 0:
 | 
					    if 'prompt_id' in prompt_metadata and 'uploading_nodes' in prompt_metadata[prompt_id] and len(prompt_metadata[prompt_id]['uploading_nodes']) > 0:
 | 
				
			||||||
        return True
 | 
					        return True
 | 
				
			||||||
    return False
 | 
					    return False
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user