Permalink
Browse files

fix #240 (again): Reload on any non-critical exception.

  • Loading branch information...
1 parent 04eade8 commit a810ae4a77d94ac8d97232f4ccd38704630e1b27 @defnull defnull committed Jan 11, 2012
Showing with 7 additions and 4 deletions.
  1. +7 −4 bottle.py
View
@@ -2473,12 +2473,15 @@ def run(app=None, server='wsgiref', host='127.0.0.1', port=8080,
server.run(app)
except KeyboardInterrupt:
pass
- except (SyntaxError, ImportError):
+ except (SystemExit, MemoryError):
+ raise
+ except:
if not reloader: raise
- if not getattr(server, 'quiet', False): print_exc()
+ if not getattr(server, 'quiet', quiet):
+ print_exc()
+ time.sleep(interval)
sys.exit(3)
- finally:
- if not getattr(server, 'quiet', False): _stderr('Shutdown...\n')
+
class FileCheckerThread(threading.Thread):

0 comments on commit a810ae4

Please sign in to comment.