Fix for Windows, and some more helpful error messages.

This commit is contained in:
Sean B. Palmer
2008-05-31 11:46:48 +01:00
parent 87b9866c7c
commit 68f2036546
4 changed files with 37 additions and 13 deletions

View File

@@ -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: