aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/util/wsgi.py
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/util/wsgi.py')
-rw-r--r--libbe/util/wsgi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbe/util/wsgi.py b/libbe/util/wsgi.py
index b731ec8..dcddcf3 100644
--- a/libbe/util/wsgi.py
+++ b/libbe/util/wsgi.py
@@ -688,8 +688,8 @@ class ServerCommand (libbe.command.base.Command):
path, when='w6', interval=1, backupCount=4,
encoding=libbe.util.encoding.get_text_file_encoding())
while libbe.LOG.handlers:
- handler = libbe.LOG.handlers[0]
- libbe.LOG.removeHandler(handler)
+ h = libbe.LOG.handlers[0]
+ libbe.LOG.removeHandler(h)
libbe.LOG.addHandler(handler)
else:
handler = logging.StreamHandler(self.stdout)