From 68f2036546c286bb864dbc2ade251041bf7e6be9 Mon Sep 17 00:00:00 2001 From: "Sean B. Palmer" Date: Sat, 31 May 2008 11:46:48 +0100 Subject: Fix for Windows, and some more helpful error messages. --- __init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to '__init__.py') diff --git a/__init__.py b/__init__.py index 3b1c556..5699583 100755 --- a/__init__.py +++ b/__init__.py @@ -36,7 +36,10 @@ def run_phenny(config): p = bot.Phenny(config) p.run(config.host, config.port) - Watcher() + try: Watcher() + except Exception, e: + print >> sys.stderr, 'Warning:', e, '(in __init__.py)' + while True: try: connect(config) except KeyboardInterrupt: -- cgit v1.2.3-1-g7c22