Skip to content

Commit 0e89199

Browse files
committed
Fix VariableReference
1 parent 577f38f commit 0e89199

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fluent.runtime/fluent/runtime/resolver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,10 @@ def __call__(self, env):
226226
(int, float, Decimal,
227227
date, datetime,
228228
text_type)):
229-
return lambda env: arg_val
229+
return arg_val
230230
env.errors.append(TypeError("Unsupported external type: {0}, {1}"
231231
.format(name, type(arg_val))))
232-
return FluentNoneResolver(name)
232+
return FluentNone(name)
233233

234234

235235
class AttributeExpression(FTL.AttributeExpression, BaseResolver):

0 commit comments

Comments
 (0)