Ottomata has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/260584

Change subject: Fix uncaught exception when creating event error for event 
without scid
......................................................................

Fix uncaught exception when creating event error for event without scid

Change-Id: I8888d27b9615bf46aa1c95633cccc4aa573ca0ac
---
M eventlogging/event.py
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/eventlogging 
refs/changes/84/260584/1

diff --git a/eventlogging/event.py b/eventlogging/event.py
index 36a7dec..e2ffd49 100644
--- a/eventlogging/event.py
+++ b/eventlogging/event.py
@@ -240,7 +240,9 @@
     # If we've got a parsed event, then we can just get the schema
     # and revision out of the object.
     if parsed_event:
-        errored_schema, errored_revision = parsed_event.scid()
+        scid = parsed_event.scid()
+        if scid:
+            errored_schema, errored_revision = scid
 
     # otherwise attempt to get them out of the raw_event with a regex
     else:

-- 
To view, visit https://gerrit.wikimedia.org/r/260584
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8888d27b9615bf46aa1c95633cccc4aa573ca0ac
Gerrit-PatchSet: 1
Gerrit-Project: eventlogging
Gerrit-Branch: master
Gerrit-Owner: Ottomata <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to