mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] python3: fix yunopaste encoding
This commit is contained in:
parent
21a0c65ed6
commit
b53859db50
1 changed files with 2 additions and 0 deletions
|
@ -20,6 +20,8 @@ def yunopaste(data):
|
|||
except Exception as e:
|
||||
logger.warning("For some reason, YunoHost was not able to anonymize the pasted data. Sorry about that. Be careful about sharing the link, as it may contain somewhat private infos like domain names or IP addresses. Error: %s" % e)
|
||||
|
||||
data = data.encode()
|
||||
|
||||
try:
|
||||
r = requests.post("%s/documents" % paste_server, data=data, timeout=30)
|
||||
except Exception as e:
|
||||
|
|
Loading…
Add table
Reference in a new issue