summaryrefslogtreecommitdiffstats
path: root/classes/xep.py
diff options
context:
space:
mode:
Diffstat (limited to 'classes/xep.py')
-rw-r--r--classes/xep.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/xep.py b/classes/xep.py
index f5fae61..df401a7 100644
--- a/classes/xep.py
+++ b/classes/xep.py
@@ -47,10 +47,10 @@ class XEPRequest:
r = s.get("https://xmpp.org/extensions/xeplist.xml")
r.encoding = 'utf-8'
local_etag = head.headers['etag']
+ self.xeplist = Et.fromstring(r.content.decode())
with open("./common/xeplist.xml", "w") as file:
file.write(r.content.decode())
- self.xeplist = Et.fromstring(r.content.decode())
with open('./common/.etag', 'w') as string:
string.write(local_etag)