Skip to content

Commit 30bf92b

Browse files
None to empty DF and log warning
1 parent ab933c9 commit 30bf92b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/party_walls/src/bag3d/party_walls/assets/party_walls.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ def party_walls_nl(
9797
dsn=context.resources.db_connection.connect.dsn,
9898
break_on_error=True,
9999
)
100+
if df is None:
101+
context.log.warning("CityStats returned None")
102+
df = DataFrame()
103+
100104
context.add_output_metadata(
101105
metadata={
102106
"Rows": len(df),

0 commit comments

Comments
 (0)