mirror of
https://github.com/Infinidat/infi.clickhouse_orm.git
synced 2025-02-19 18:00:32 +03:00
removes error reraising
This commit is contained in:
parent
ed51ad5be6
commit
62ad18d8ff
|
@ -238,10 +238,7 @@ class DateTime64Field(DateTimeField):
|
||||||
assert precision is None or isinstance(precision, int), 'Precision must be int type'
|
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'
|
assert timezone is None or isinstance(timezone, str), 'Timezone must be string type'
|
||||||
if timezone:
|
if timezone:
|
||||||
try:
|
|
||||||
pytz.timezone(timezone)
|
pytz.timezone(timezone)
|
||||||
except UnknownTimeZoneError:
|
|
||||||
raise Exception('Timezone must be a valid IANA timezone identifier')
|
|
||||||
self.precision = precision
|
self.precision = precision
|
||||||
self.timezone = timezone
|
self.timezone = timezone
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user