From 25734c151432df7a77ec9a0f8ab5103ea658b7bf Mon Sep 17 00:00:00 2001 From: Eric Blade Date: Fri, 25 Feb 2011 20:40:04 -0500 Subject: [PATCH 1/2] add error for missing pytz --- pyfpdb/HandHistoryConverter.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pyfpdb/HandHistoryConverter.py b/pyfpdb/HandHistoryConverter.py index b283b6f2..03202c5a 100644 --- a/pyfpdb/HandHistoryConverter.py +++ b/pyfpdb/HandHistoryConverter.py @@ -32,8 +32,14 @@ from xml.dom.minidom import Node import time import datetime -from pytz import timezone -import pytz + +try: + from pytz import timezone + import pytz +except ImportError: + print _("ImportError: Unable to import PYTZ library. Please install PYTZ from http://pypi.python.org/pypi/pytz/") + raw_input(_("Press ENTER to continue.")) + exit() import logging # logging has been set up in fpdb.py or HUD_main.py, use their settings: From af07b88d5aa770809bacfb03527ae484dd71669a Mon Sep 17 00:00:00 2001 From: Eric Blade Date: Fri, 25 Feb 2011 21:20:52 -0500 Subject: [PATCH 2/2] slight tweaks to default 10-man layout on everleaf --- pyfpdb/HUD_config.xml.example | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pyfpdb/HUD_config.xml.example b/pyfpdb/HUD_config.xml.example index b62d6db1..43e507b6 100644 --- a/pyfpdb/HUD_config.xml.example +++ b/pyfpdb/HUD_config.xml.example @@ -282,16 +282,16 @@ Left-Drag to Move" - - - - - - - - - - + + + + + + + + + +