Closed glaslos closed 11 years ago
Would you want the entire main of spawner in try/catch or the below shown will suffice:
try: hpfeeds_logger = hpfeeds.HPFeedsLogger() except KeyError: pass
Please use the code formatting if you paste code into a comment. No, this wouldn't work. Who have to catch the exception where it occurred:
try:
server.serve_forever()
except:
handle_exception
Wrap the main of the spawner in a try/except and close the HPFeeds connection if it's there and the spawner gets stopped.