Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mrDoctorWho/vk4xmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--library/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/utils.py b/library/utils.py
index 9d8f6ad..001a47a 100644
--- a/library/utils.py
+++ b/library/utils.py
@@ -75,9 +75,9 @@ def getLinkData(url, encode=True):
"""
try:
opener = urllib.urlopen(url)
+ data = opener.read()
except (Exception, error):
return ""
- data = opener.read()
if data and encode:
data = data.encode("base64")
return data