Skip to content

Commit

Permalink
Merge branch 'more-runtime-support' of https://github.com/spatocode/jerm
Browse files Browse the repository at this point in the history
 into more-runtime-support
  • Loading branch information
spatocode committed Sep 27, 2023
2 parents c23502b + c6e520f commit c0df568
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/manage.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ var manageCmd = &cobra.Command{
}

runtime := config.NewPythonRuntime(utils.Command())
python := runtime.(*config.Python)
if !strings.HasPrefix(cfg.Platform.Runtime, "python") || !python.IsDjango() {
python, ok := runtime.(*config.Python)
if !ok || !python.IsDjango() {
log.PrintError("manage command is for Django projects only")
return
}
Expand Down

0 comments on commit c0df568

Please sign in to comment.