From e9861e18c8d9d8aad687487b5ce3fc19e22f7d69 Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 5 Mar 2009 10:12:31 -0500 Subject: [PATCH] Fix error when no aux_windows are specified. --- pyfpdb/HUD_main.py | 4 ++-- pyfpdb/Hud.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyfpdb/HUD_main.py b/pyfpdb/HUD_main.py index cf0583bb..dcb32c26 100755 --- a/pyfpdb/HUD_main.py +++ b/pyfpdb/HUD_main.py @@ -31,8 +31,8 @@ Main for FreePokerTools HUD. import sys # redirect the stderr -#errorfile = open('HUD-error.txt', 'w', 0) -#sys.stderr = errorfile +errorfile = open('HUD-error.txt', 'w', 0) +sys.stderr = errorfile import os import thread diff --git a/pyfpdb/Hud.py b/pyfpdb/Hud.py index 34d1b0cf..05696a9d 100644 --- a/pyfpdb/Hud.py +++ b/pyfpdb/Hud.py @@ -85,7 +85,7 @@ class Hud: # do we need to add some sort of condition here for dealing with a request for a font that doesn't exist? game_params = config.get_game_parameters(self.poker_game) - if not game_params['aux'] == "": + if not game_params['aux'] == [""]: for aux in game_params['aux']: aux_params = config.get_aux_parameters(aux) my_import = importName(aux_params['module'], aux_params['class'])