summaryrefslogtreecommitdiff
path: root/cliff/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'cliff/app.py')
-rw-r--r--cliff/app.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/cliff/app.py b/cliff/app.py
index 06c679f..bc0b65e 100644
--- a/cliff/app.py
+++ b/cliff/app.py
@@ -143,7 +143,11 @@ class App(object):
self.interactive_mode = not remainder
self.initialize_app(remainder)
except Exception as err:
- if self.options.debug:
+ if hasattr(self, 'options'):
+ debug = self.options.debug
+ else:
+ debug = True
+ if debug:
LOG.exception(err)
raise
else: