diff --git a/apps/develop/tasks.py b/apps/develop/tasks.py index 5157fa53..fae84393 100755 --- a/apps/develop/tasks.py +++ b/apps/develop/tasks.py @@ -25,8 +25,11 @@ def backup_database(): @shared_task def reload_server_git(): command = 'bash {}/git_server.sh'.format(SH_PATH) - subprocess.run(command, shell=True, capture_output=True, text=True) - # return completed + completed = subprocess.run(command, shell=True, capture_output=True, text=True) + if completed.returncode == 0: + return + else: + raise completed.stdout @shared_task