Skip to content

Commit

Permalink
fix: mypy error arg-type
Browse files Browse the repository at this point in the history
  • Loading branch information
italojohnny committed Oct 3, 2024
1 parent a220841 commit 2d47df2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/backend/base/langflow/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,12 @@ def run(

settings_service = get_settings_service()

arguments, _, _, values = inspect.getargvalues(inspect.currentframe())
valid_args = [arg for arg in arguments if values[arg] is not None]
frame = inspect.currentframe()
valid_args = []
if frame is not None:
arguments, _, _, values = inspect.getargvalues(frame)
valid_args = [arg for arg in arguments if values[arg] is not None]

for arg in valid_args:
if arg == "components_path":
settings_service.settings.update_settings(components_path=components_path)
Expand Down

0 comments on commit 2d47df2

Please sign in to comment.