Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -322,7 +322,7 @@ class Function(object): | ... | @@ -322,7 +322,7 @@ class Function(object): |
322 | self._context.environment) | 322 | self._context.environment) |
323 | self.create_alias(self._context.environment, description) | 323 | self.create_alias(self._context.environment, description) |
324 | ready = True | 324 | ready = True |
325 | - except ClientError, e: | 325 | + except ClientError as e: |
326 | if 'InvalidParameterValueException' in str(e): | 326 | if 'InvalidParameterValueException' in str(e): |
327 | LOG.debug('Role is not ready, waiting') | 327 | LOG.debug('Role is not ready, waiting') |
328 | time.sleep(2) | 328 | time.sleep(2) | ... | ... |
-
Please register or login to post a comment