From d94e24cc173d169f2a8eddf3dcea3ecc27f67d44 Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 17 Jan 2008 18:00:46 +0000 Subject: [PATCH] repaired event test git-svn-id: svn://svn.open-ils.org/ILS/trunk@8403 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/python/oils/event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/python/oils/event.py b/Open-ILS/src/python/oils/event.py index db64481d45..d3a78f0285 100644 --- a/Open-ILS/src/python/oils/event.py +++ b/Open-ILS/src/python/oils/event.py @@ -32,7 +32,7 @@ class Event(object): like an ILS event, construct an Event object and return it. Returns None otherwise. ''' - if evt and 'ilsevent' in evt and 'textcode' in evt: + if isinstance(evt, dict) and 'ilsevent' in evt and 'textcode' in evt: return Event(evt) return None -- 2.11.0