Skip to content

Commit

Permalink
fix: mauvais message d'erreur chargement Zone AMP
Browse files Browse the repository at this point in the history
  • Loading branch information
herve.le-bars committed Mar 28, 2024
1 parent 1201eb4 commit a8dccd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tasks/dimensions/load_dim_zone_amp_from_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ def run(self, *args, **kwargs):
total = len(zones)
print(zones)
except ValidationError as e:
logger.error("Erreur de validation des données de bateau")
logger.error("Erreur de validation des données de zone AMP")
logger.error(e.errors())
except DBException:
logger.error("Erreur d'insertion en base")
logger.info(f"{total} bateau(x) créés")
logger.info(f"{total} zone(s) AMP créés")


if __name__ == "__main__":
Expand Down

0 comments on commit a8dccd6

Please sign in to comment.