mirror of
https://github.com/ansible/awx.git
synced 2026-03-17 17:07:33 -02:30
Converted except T,e expressions to except T as e
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user