Fix make_constant() in the AST module, to always return a
constant. It was failing to do so for timestamps, instead returning a STIXdatetime object.pull/1/head
parent
72a032c6e3
commit
f2691e89f5
|
@ -227,7 +227,7 @@ def make_constant(value):
|
||||||
return value
|
return value
|
||||||
|
|
||||||
try:
|
try:
|
||||||
return parse_into_datetime(value)
|
return TimestampConstant(value)
|
||||||
except (ValueError, TypeError):
|
except (ValueError, TypeError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue