Fix coding error getting environment variable GAM_AUTOBATCH

This commit is contained in:
Ross Scroggs
2015-11-12 12:40:46 -08:00
parent a43bb56a43
commit f34620aa73

View File

@ -8968,7 +8968,7 @@ try:
print user
sys.exit(0)
try:
autoBatch = int(os.environ[u'GAM_AUTOBATCH', '0'])
autoBatch = int(os.environ.get(u'GAM_AUTOBATCH', '0'))
if (autoBatch > 0) and (len(users) > autoBatch):
items = []
for user in users: