summaryrefslogtreecommitdiff
path: root/pecan/commands/create.py
diff options
context:
space:
mode:
Diffstat (limited to 'pecan/commands/create.py')
-rw-r--r--pecan/commands/create.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pecan/commands/create.py b/pecan/commands/create.py
index b6eec2a..1187489 100644
--- a/pecan/commands/create.py
+++ b/pecan/commands/create.py
@@ -22,7 +22,7 @@ class ScaffoldManager(object):
log.debug('%s loading scaffold %s', self.__class__.__name__, ep)
try:
cmd = ep.load()
- assert hasattr(cmd, 'copy_to')
+ cmd.copy_to # ensure existance; catch AttributeError otherwise
except Exception as e: # pragma: nocover
warn(
"Unable to load scaffold %s: %s" % (ep, e), RuntimeWarning