Closed rachel3834 closed 7 years ago
I tracked this issue to a specific event OB171284, for which the g parameter is unusually large: 10452.24. Its causing this error because the models.py definition of the g field in the DataFiles table specifies max_digits=6, decimal_places=2, which I think means that the entries cannot exceed 999.99.
I've added better error handling within the update_db_2 functions to raise error warnings rather than simply crash the code in these circumstances. However, the actual fix is to increase the models.py specification of the max_digits for this field.
I've implemented these changes and deployed them in the latest update. I ran the subscriber manually to check and it now runs without errors again.
Error reported (in /var/spool/mail/robouser:
This error is originating in update_db_2.add_datafile_via_api when it attempts to save parameters read from an ARTEMiS .align and .dat files.