From 62ad18d8ffd4bf4ec85fa91b83719311e2666bb5 Mon Sep 17 00:00:00 2001 From: Niyaz Batyrshin Date: Sun, 7 Jun 2020 13:14:18 +0300 Subject: [PATCH] removes error reraising --- src/infi/clickhouse_orm/fields.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/infi/clickhouse_orm/fields.py b/src/infi/clickhouse_orm/fields.py index 6b7fee4..88eb704 100644 --- a/src/infi/clickhouse_orm/fields.py +++ b/src/infi/clickhouse_orm/fields.py @@ -238,10 +238,7 @@ class DateTime64Field(DateTimeField): assert precision is None or isinstance(precision, int), 'Precision must be int type' assert timezone is None or isinstance(timezone, str), 'Timezone must be string type' if timezone: - try: - pytz.timezone(timezone) - except UnknownTimeZoneError: - raise Exception('Timezone must be a valid IANA timezone identifier') + pytz.timezone(timezone) self.precision = precision self.timezone = timezone