|
|
@@ -109,7 +109,7 @@ def main():
|
|
|
chantier_id = input("Veuillez saisir le code chantier: ")
|
|
|
if not chantier_id:
|
|
|
logger.error("Code chantier invalide")
|
|
|
- sys.exit(1)
|
|
|
+ return
|
|
|
|
|
|
# Calcul du numéro d'intervention
|
|
|
last_interv_id = controles_db.first("SELECT max(bytIntervId) as last_interv_id FROM tblVideoIntervs WHERE lngChantierId={}".format(chantier_id)).last_interv_id
|
|
|
@@ -129,7 +129,7 @@ def main():
|
|
|
if not input("Voulez-vous continuer? (o/n)") == 'o':
|
|
|
if input("Etes-vous sûr de vouloir annuler l'opération? (o/n)") == 'o':
|
|
|
logger.info("Opération annulée par l'utilisateur")
|
|
|
- sys.exit(1)
|
|
|
+ return
|
|
|
|
|
|
|
|
|
# Recuperation des données de l'intervention
|