template: handle lack of "users" in the obsfate data
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sun, 02 Jul 2017 13:48:45 +0200
changeset 2690 5d839e1f0ce9
parent 2689 9e84b407fde5
child 2691 9b68a2083dac
template: handle lack of "users" in the obsfate data This can happens when their are no markers (or the markers has no user data?)
hgext3rd/evolve/templatekw.py
--- a/hgext3rd/evolve/templatekw.py	Fri Jun 30 16:29:26 2017 +0200
+++ b/hgext3rd/evolve/templatekw.py	Sun Jul 02 13:48:45 2017 +0200
@@ -192,7 +192,7 @@
     line.append(obsfateline['verb'])
 
     # Users
-    if verbose or normal:
+    if (verbose or normal) and 'users' in obsfateline:
         users = obsfateline['users']
 
         if normal: