Skip to content

Commit

Permalink
Fix non class functions
Browse files Browse the repository at this point in the history
  • Loading branch information
erikbern committed Dec 19, 2023
1 parent 49c9faa commit cee016b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modal/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ def from_args(
image = image.apt_install("autossh")

build_functions = []
if not is_auto_snapshot:
if cls and not is_auto_snapshot:
# Experimental syntax – soon deprecated
if hasattr(info.cls, "__build__"):
build_functions.append(info.cls.__build__)
Expand Down

0 comments on commit cee016b

Please sign in to comment.