Permalink
Browse files

Missed a couple spaces in my call() routines, broke my script.

  • Loading branch information...
1 parent ea1ae1b commit a624ff553c999ec9960071c6892fe79df55458e5 @mattdeboard committed May 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 srchupdate.py
View
@@ -22,7 +22,7 @@ def update():
'www-data:www-data', whoosh_dir])
apachereload = subprocess.call(['sudo',
'/etc/init.d/apache2', 'force-reload'])
- if sum(mattwhoosh, update_index, apachewhsh, apachereload) == 0:
+ if sum([mattwhoosh, update_index, apachewhsh, apachereload]) == 0:
logging.info('Index successfully updated.')
logging.error('The following exit codes were returned:')
logging.error('- mattwhoosh: %s' % mattwhoosh)

0 comments on commit a624ff5

Please sign in to comment.