Skip to content

Bug with the format of the date #1397

@antolinos

Description

@antolinos

It seems there is an issue with the newest version:

Traceback (most recent call last):
  File "/home/blissadm/local/mxcube/mxcubecore/mxcubecore/HardwareObjects/abstract/AbstractMultiCollect.py", line 1166, in loop
    HWR.beamline.lims.finalize_data_collection(
  File "/home/blissadm/local/mxcube/mxcubecore/mxcubecore/HardwareObjects/ESRFLIMS.py", line 157, in finalize_data_collection
    self.drac.finalize_data_collection(mx_collection)
  File "/home/blissadm/local/mxcube/mxcubecore/mxcubecore/HardwareObjects/ICATLIMS.py", line 1075, in finalize_data_collection
    metadata = self.store_common_data(datacollection_dict)
  File "/home/blissadm/local/mxcube/mxcubecore/mxcubecore/HardwareObjects/ICATLIMS.py", line 827, in store_common_data
    dt_aware = datetime.strptime(start_time, "%Y-%m-%d %H:%M:%S").replace(
  File "/users/blissadm/conda/miniconda/envs/mxcubeweb/lib/python3.10/_strptime.py", line 568, in _strptime_datetime
    tt, fraction, gmtoff_fraction = _strptime(data_string, format)
  File "/users/blissadm/conda/miniconda/envs/mxcubeweb/lib/python3.10/_strptime.py", line 349, in _strptime
    raise ValueError("time data %r does not match format %r" %
ValueError: time data '' does not match format '%Y-%m-%d %H:%M:%S'
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions