Skip to content

Commit

Permalink
fix missing import (only affected non-linux systems)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasertl committed Feb 22, 2011
1 parent b881318 commit c209a99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spectrumctl/spectrum/spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ def status( self, pid=None ):
return 0 # "running."
except OSError, err:
# except OSError as err: #python3
import errno
if err.errno == errno.ESRCH:
return 1 # "not running but pid file exists."
else:
Expand Down

0 comments on commit c209a99

Please sign in to comment.