From 44ad2ef08aa4ed2f3d3ac4b5f9261da787e86927 Mon Sep 17 00:00:00 2001 From: Luca Fabbri Date: Tue, 30 Apr 2024 18:12:28 +0200 Subject: [PATCH] Fixed a bug introduced when with using action sync --- HISTORY.rst | 2 +- haunts/spreadsheet.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index 0405f24..42fd3ea 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -4,7 +4,7 @@ History 0.7.2 (unreleased) ------------------ -- Nothing changed yet. +- Fixed a bug introduced when with using action sync 0.7.1 (2024-04-13) diff --git a/haunts/spreadsheet.py b/haunts/spreadsheet.py index 12544f2..a54bd4f 100644 --- a/haunts/spreadsheet.py +++ b/haunts/spreadsheet.py @@ -246,7 +246,11 @@ def get_calendars(sheet, ignore_alias=False, use_read_col=False): configured_calendars = {} for cols in values: if not use_read_col: - id, alias = cols + try: + id, alias = cols + except ValueError: + # not required alias column + id, alias, _ = cols read_from = None else: try: