misc py3 changes

Change-Id: I78abb50c0ccd4fdb1736aa931b61254a23aad9a0
diff --git a/zuul/model.py b/zuul/model.py
index ab44047..fe66397 100644
--- a/zuul/model.py
+++ b/zuul/model.py
@@ -1530,11 +1530,11 @@
         except KeyError as e:
             self.log.error("Error while formatting url for job %s: unknown "
                            "key %s in pattern %s"
-                           % (job, e.message, url_pattern))
+                           % (job, e.args[0], url_pattern))
         except AttributeError as e:
             self.log.error("Error while formatting url for job %s: unknown "
                            "attribute %s in pattern %s"
-                           % (job, e.message, url_pattern))
+                           % (job, e.args[0], url_pattern))
         except Exception:
             self.log.exception("Error while formatting url for job %s with "
                                "pattern %s:" % (job, url_pattern))