checked "basestring"

This commit is contained in:
Matthias Urlichs committed 2019-02-01 17:23:08 +01:00
1 parent 00068114a1
commit e03feeb7ac
5 files changed
+7 -3

No files matched your search

+2 -1
View File
@@ -117,7 +117,8 @@ class OctoPrintDevelCommands(click.MultiCommand):
if key in options:
val = options[key]
else:
raw = raw if isinstance(raw, basestring) else str(raw)
if not isinstance(raw, basestring):
raw = str(raw)
val = env.from_string(raw).render(cookiecutter=cookiecutter_dict)
if not no_input: