Converted except T,e expressions to except T as e

This commit is contained in:
Akita Noek
2016-06-27 13:14:36 -04:00
parent 7839db0c23
commit b57739a800
14 changed files with 37 additions and 37 deletions

View File

@@ -77,7 +77,7 @@ def celery_startup(conf=None, **kwargs):
try:
sch.update_computed_fields()
sch.save()
except Exception, e:
except Exception as e:
logger.error("Failed to rebuild schedule {}: {}".format(sch, e))
@task()
@@ -1722,7 +1722,7 @@ class RunSystemJob(BaseTask):
args.extend(['--older_than', str(json_vars['older_than'])])
if 'granularity' in json_vars:
args.extend(['--granularity', str(json_vars['granularity'])])
except Exception, e:
except Exception as e:
logger.error("Failed to parse system job: " + str(e))
return args