Skip to content
This repository has been archived by the owner on Jan 23, 2019. It is now read-only.

Commit

Permalink
fixes unnamed method bug
Browse files Browse the repository at this point in the history
thanks trevorc
  • Loading branch information
ipmb committed Mar 16, 2009
1 parent 735e750 commit 1285b9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django_cpserver/management/commands/runcpserver.py
Expand Up @@ -120,7 +120,7 @@ def poll_process(pid):
# process has died
return False
else:
raise #TODO
raise Exception
return True

def stop_server(pidfile):
Expand All @@ -138,7 +138,7 @@ def stop_server(pidfile):
if poll_process(pid):
#process didn't exit cleanly, make one last effort to kill it
os.kill(pid, signal.SIGKILL)
if still_alive(pid):
if poll_process(pid):
raise OSError, "Process %s did not stop."
os.remove(pidfile)

Expand Down

0 comments on commit 1285b9a

Please sign in to comment.