Add standard openssl -text output to buildd.debian-ports.org.crt
[mirror/dsa-puppet.git] / modules / buildd / files / buildd-schroot-aptitude-kill
index 07f75c1..74c4a02 100755 (executable)
 # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 import os
-import psutil
+import errno
+import sys
+try:
+       import psutil
+except OSError, e:
+       # XXX: This is a hack, but since we are run from cron, it's
+       # better to handle this on the next run than to send mail.
+       if e.errno == errno.ENOENT:
+               sys.exit(0)
 
 total_mem = psutil.phymem_usage().total
 cutoff_time = 60*10