Skip to content

Commit

Permalink
Update flow/record/fieldtypes/__init__.py
Browse files Browse the repository at this point in the history
Co-authored-by: Yun Zheng Hu <[email protected]>
  • Loading branch information
Miauwkeru and yunzheng authored Oct 10, 2023
1 parent 7d63d78 commit 4a69b7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flow/record/fieldtypes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ def flow_record_tz(*, default_tz: str = "UTC") -> Optional[ZoneInfo | UTC]:
return None

if not HAS_ZONE_INFO:
warnings.warn("Cannot use FLOW_RECORD_TZ due to missing zoneinfo module, defaulting to 'UTC'.")
if tz != "UTC":
warnings.warn("Cannot use FLOW_RECORD_TZ due to missing zoneinfo module, defaulting to 'UTC'.")
return UTC

Check warning on line 66 in flow/record/fieldtypes/__init__.py

View check run for this annotation

Codecov / codecov/patch

flow/record/fieldtypes/__init__.py#L64-L66

Added lines #L64 - L66 were not covered by tests

try:
Expand Down

0 comments on commit 4a69b7f

Please sign in to comment.