+
+class UnknownAccountError(Exception):
+ pass
+
+
+def get_account(data):
+ account_id = data["transactions"][0]["account_id"]
+ if account_id == "":
+ return "Accounts:Monzo"
+ elif account_id == "":
+ return "Accounts:Joint Account"
+
+ raise UnknownAccountError(account_id)
+
+