raise a CommandError exception, with string "No migrations present for: %s" as argument, substitute '%s' in previous string with,
raise CommandError ( "No migrations present for: %s" % ( ", " . join ( invalid_apps ) ) )