Skip to content

Commit

Permalink
fix unbound local error
Browse files Browse the repository at this point in the history
  • Loading branch information
hsyyid committed Oct 30, 2024
1 parent cb03e2a commit 8aea961
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions gluestick/singer.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,11 +302,12 @@ def to_singer(
allow_objects: boolean
Allow or not objects to the parsed, if false defaults types to str.
"""
"""
catalog_schema = os.environ.get("USE_CATALOG_SCHEMA", "false").lower() == "true"

if allow_objects and not catalog_schema:
df = df.dropna(how="all", axis=1)

catalog_schema = os.environ.get("USE_CATALOG_SCHEMA", "false").lower() == "true"

if catalog_schema:
# it'll allow_objects but keeping all columns
allow_objects = True
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="gluestick",
version="2.1.27",
version="2.1.28",
description="ETL utility functions built on Pandas",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 8aea961

Please sign in to comment.