From: erickson Date: Thu, 17 Jan 2008 18:00:50 +0000 (+0000) Subject: repaired event test X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d4f033ad4136dc801d5a4551473eb922e604efb4;p=Evergreen.git repaired event test git-svn-id: svn://svn.open-ils.org/ILS/branches/acq-experiment@8404 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- 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