From 59439964c67bd9dada84bbe1876491bd7e66c6f4 Mon Sep 17 00:00:00 2001 From: LukasK13 Date: Fri, 23 Oct 2020 13:46:58 +0200 Subject: [PATCH] Bugfix: catch multiple errors --- esbo_etc/classes/Entry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esbo_etc/classes/Entry.py b/esbo_etc/classes/Entry.py index 665a2ee..2205d9f 100644 --- a/esbo_etc/classes/Entry.py +++ b/esbo_etc/classes/Entry.py @@ -84,7 +84,7 @@ class Entry(object): mes = self.check_quantity(name, unit, use_default) if mes is not None: return mes - except [ValueError, TypeError]: + except (ValueError, TypeError): return "Expected parameter '" + name + "' with unit '" + unit.to_string() + \ "' but got no unit and cannot convert '" + attr + "' to a numeric value." else: