Commits

Vladimir Mihailenco  committed 609a75b

If we can not detect command availability return True

  • Participants
  • Parent commits e12a42b

Comments (0)

Files changed (1)

File fab_deploy/django_commands.py

 def command_is_available(command):
     with settings(hide('warnings', 'running', 'stdout', 'stderr'), warn_only=True):
         output = run('python manage.py help ' + command)
+    if output.failed:
+        with settings(hide('warnings', 'running', 'stdout', 'stderr'), warn_only=True):
+            test_output = run('python manage.py')
+        if test_output.failed:
+            return True
     return output.succeeded
 
 @utils.inside_project