Browse Source

Update deduplica_comissao.py

Co-Authored-By: Cesar Augusto de Carvalho <cesaraugc@gmail.com>
script-comissao
Edward 6 years ago
committed by GitHub
parent
commit
ff316b5d8c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      deduplica_comissao.py

2
deduplica_comissao.py

@ -135,7 +135,7 @@ def delete_comissao(id):
a.objects.filter(autor=autor).delete() a.objects.filter(autor=autor).delete()
autor.delete() autor.delete()
except Exception as e: except Exception as e:
print(e) print(str(e))
try: try:
unidate_tramitacao = UnidadeTramitacao.objects.get(comissao=comissao) unidate_tramitacao = UnidadeTramitacao.objects.get(comissao=comissao)

Loading…
Cancel
Save