From b4ccc7f45ce9abcfcaf1350f3179c9af303495c1 Mon Sep 17 00:00:00 2001 From: Worros Date: Thu, 3 Sep 2009 11:29:30 +0800 Subject: [PATCH] Add guards around numpy in GuiSessionViewer for windows users --- pyfpdb/GuiSessionViewer.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pyfpdb/GuiSessionViewer.py b/pyfpdb/GuiSessionViewer.py index e670bf73..0587e5e0 100644 --- a/pyfpdb/GuiSessionViewer.py +++ b/pyfpdb/GuiSessionViewer.py @@ -21,7 +21,11 @@ pygtk.require('2.0') import gtk import os from time import time, strftime, localtime -from numpy import diff, nonzero +try: + from numpy import diff, nonzero +except: + print """Failed to load numpy in Session Viewer""" + print """This is of no consequence as the module currently doesn't do anything.""" import Card import fpdb_import