Skip to content

Commit 8f96ac3

Browse files
committed
runtime: satisfy mypy complaint
1 parent b021959 commit 8f96ac3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fluent.runtime/fluent/runtime/fallback.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def format_message(
6262
for bundle in self._bundles()
6363
if bundle.has_message(msg_id)
6464
), (None, None))
65-
if not msg:
65+
if not bundle or not msg:
6666
return FormattedMessage(msg_id, {})
6767
formatted_attrs = {
6868
attr: cast(
@@ -89,7 +89,7 @@ def format_value(
8989
for bundle in self._bundles()
9090
if bundle.has_message(msg_id)
9191
), (None, None))
92-
if not msg or not msg.value:
92+
if not bundle or not msg or not msg.value:
9393
return msg_id
9494
val, _errors = bundle.format_pattern(msg.value, args)
9595
return cast(

0 commit comments

Comments
 (0)