aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorW. Trevor King <wking@tremily.us>2012-08-24 09:38:13 -0400
committerW. Trevor King <wking@tremily.us>2012-08-24 09:38:13 -0400
commit4bf6e87c542c908121ffb7f8ebdd2f836a988899 (patch)
tree0fe50dbfb328ed346d32cbb1cdf860b738c3ae4e
parent366fc9867645e46406d6a040eb14cabd8a8b45f4 (diff)
downloadbugseverywhere-4bf6e87c542c908121ffb7f8ebdd2f836a988899.tar.gz
command:base: only cleanup UseInterface.storage_callback if it's there.
It's hard to see why it wouldn't be, but .setup_command handles the case where it's missing, so we should be consistent here.
-rw-r--r--libbe/command/base.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbe/command/base.py b/libbe/command/base.py
index 40e4bf9..a5af1f0 100644
--- a/libbe/command/base.py
+++ b/libbe/command/base.py
@@ -583,5 +583,6 @@ class UserInterface (object):
return self._user_id
def cleanup(self):
- self.storage_callbacks.cleanup()
+ if self.storage_callbacks is not None:
+ self.storage_callbacks.cleanup()
self.io.cleanup()