Skip to content

Commit

Permalink
remove unused try/catch
Browse files Browse the repository at this point in the history
  • Loading branch information
cekk committed Jul 17, 2024
1 parent b87155c commit c7c0bab
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions src/iosanita/contenttypes/setuphandlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,14 @@ def post_install(context):


def post_install_taxonomy(context):
try:
for index in [
"tipologia_notizia",
"a_chi_si_rivolge_tassonomia",
"tipologia_argomento",
"tipologia_evento",
"tipologia_punti_di_contatto",
]:
api.portal.get_tool("portal_catalog").delIndex(index)
# NOTE: non va bene, cosa è che si rompe
except: # noqa
pass
for index in [
"tipologia_notizia",
"a_chi_si_rivolge_tassonomia",
"tipologia_argomento",
"tipologia_evento",
"tipologia_punti_di_contatto",
]:
api.portal.get_tool("portal_catalog").delIndex(index)

for utility_name, utility in list(getUtilitiesFor(ITaxonomy)):
utility.updateBehavior(**{"field_prefix": ""})
Expand Down

0 comments on commit c7c0bab

Please sign in to comment.