Commit 46484514 authored by Jeremy Hylton's avatar Jeremy Hylton

Replace to useful "finally: pass" clauses with "except: pass" clauses

that allow start.py to recover.

Thanks for Chris Withers for reminding about this.
parent d28242b6
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
"""Start the server storage. """Start the server storage.
""" """
__version__ = "$Revision: 1.21 $"[11:-2] __version__ = "$Revision: 1.22 $"[11:-2]
import sys, os, getopt, string import sys, os, getopt, string
...@@ -294,9 +294,9 @@ def main(argv): ...@@ -294,9 +294,9 @@ def main(argv):
lambda sig, frame, s=storages: shutdown(s, 0) lambda sig, frame, s=storages: shutdown(s, 0)
) )
try: signal.signal(signal.SIGHUP, rotate_logs_handler) try: signal.signal(signal.SIGHUP, rotate_logs_handler)
finally: pass except: pass
finally: pass except: pass
items=storages.items() items=storages.items()
items.sort() items.sort()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment