[hotfix] datetime formatting caused error when time not set
This commit is contained in:
2
PyLoT.py
2
PyLoT.py
@@ -1459,7 +1459,7 @@ class MainWindow(QMainWindow):
|
|||||||
if event.dirty:
|
if event.dirty:
|
||||||
event_str += '*'
|
event_str += '*'
|
||||||
item_path = QStandardItem(event_str)
|
item_path = QStandardItem(event_str)
|
||||||
item_time = QStandardItem('{}'.format(time.strftime("%Y-%m-%d %H:%M:%S")))
|
item_time = QStandardItem('{}'.format(time.strftime("%Y-%m-%d %H:%M:%S") if time else ''))
|
||||||
item_lat = QStandardItem('{}'.format(lat))
|
item_lat = QStandardItem('{}'.format(lat))
|
||||||
item_lon = QStandardItem('{}'.format(lon))
|
item_lon = QStandardItem('{}'.format(lon))
|
||||||
item_depth = QStandardItem('{}'.format(depth))
|
item_depth = QStandardItem('{}'.format(depth))
|
||||||
|
|||||||
Reference in New Issue
Block a user