Not all artworks have an institution
This commit is contained in:
		
							parent
							
								
									d814ecf3a4
								
							
						
					
					
						commit
						441839e832
					
				
							
								
								
									
										1
									
								
								app.py
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								app.py
									
									
									
									
									
								
							| 
						 | 
					@ -528,7 +528,6 @@ def item_page(item_id: int) -> str | Response:
 | 
				
			||||||
    catalog = wd_catalog.get_catalog_from_artwork(entity)
 | 
					    catalog = wd_catalog.get_catalog_from_artwork(entity)
 | 
				
			||||||
    if not catalog.get("institution"):
 | 
					    if not catalog.get("institution"):
 | 
				
			||||||
        institution = get_institution(entity, other)
 | 
					        institution = get_institution(entity, other)
 | 
				
			||||||
        assert institution
 | 
					 | 
				
			||||||
        catalog["institution"] = institution
 | 
					        catalog["institution"] = institution
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return render_template(
 | 
					    return render_template(
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue