summary refs log tree commit diff
path: root/synapse/federation/units.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-11-10 13:46:44 +0000
committerErik Johnston <erik@matrix.org>2014-11-10 13:46:44 +0000
commit5d439b127ba34b951dfd09a7d3c684c2d50df702 (patch)
treee12a03f22cb0c6b5ca6b0d72f863b288b6a11612 /synapse/federation/units.py
parentRemove useless comments (diff)
downloadsynapse-5d439b127ba34b951dfd09a7d3c684c2d50df702.tar.xz
PEP8
Diffstat (limited to 'synapse/federation/units.py')
-rw-r--r--synapse/federation/units.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/synapse/federation/units.py b/synapse/federation/units.py
index d98014cac7..f4e7b62bd9 100644
--- a/synapse/federation/units.py
+++ b/synapse/federation/units.py
@@ -192,7 +192,9 @@ class Transaction(JsonEncodedObject):
         transaction_id and origin_server_ts keys.
         """
         if "origin_server_ts" not in kwargs:
-            raise KeyError("Require 'origin_server_ts' to construct a Transaction")
+            raise KeyError(
+                "Require 'origin_server_ts' to construct a Transaction"
+            )
         if "transaction_id" not in kwargs:
             raise KeyError(
                 "Require 'transaction_id' to construct a Transaction"
@@ -204,6 +206,3 @@ class Transaction(JsonEncodedObject):
         kwargs["pdus"] = [p.get_dict() for p in pdus]
 
         return Transaction(**kwargs)
-
-
-