Skip to content

Commit 54f4215

Browse files
author
Jean-Francois Thuong
committed
Corrected encoding function for getting Attachment to fix issue #138
1 parent 4c3b08c commit 54f4215

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pyral/restapi.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1696,8 +1696,7 @@ def getAttachment(self, artifact, filename):
16961696
if response.errors or response.resultCount != 1:
16971697
return None
16981698
att_content = response.next()
1699-
#att.Content = base64.decodestring(att_content.Content) # maybe further txfm to Unicode ?
1700-
att.Content = base64.decodebytes(att_content.Content) # maybe further txfm to Unicode ?
1699+
att.Content = base64.b64decode(att_content.Content)
17011700
return att
17021701

17031702

0 commit comments

Comments
 (0)