Skip to content

Commit 6dfc596

Browse files
author
Clark Perkins
committed
Fixed a couple more python3 things
1 parent e7716b3 commit 6dfc596

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stackdio/cli/blueprints/generator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,12 +296,12 @@ def generate(self, template_file, var_files=(), variables=None, prompt=False, de
296296

297297
except TemplateNotFound:
298298
self.error_exit('Your template file {0} was not found.'.format(template_file))
299-
except TemplateSyntaxError, e:
299+
except TemplateSyntaxError as e:
300300
self.error_exit('Invalid template error at line {0}:\n{1}'.format(
301301
e.lineno,
302302
str(e)
303303
))
304-
except UndefinedError, e:
304+
except UndefinedError as e:
305305
self.error_exit('Missing variable: {0}'.format(str(e)))
306306
except ValueError:
307307
self.error_exit('Invalid JSON. Check your template file.')

0 commit comments

Comments
 (0)