Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit a810ae4a77d94ac8d97232f4ccd38704630e1b27 1 parent 04eade8
@defnull defnull authored
Showing with 7 additions and 4 deletions.
  1. +7 −4 bottle.py
View
11 bottle.py
@@ -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):
Please sign in to comment.
Something went wrong with that request. Please try again.