Skip to content

Commit

Permalink
another fix for add-on downloading
Browse files Browse the repository at this point in the history
  • Loading branch information
dae committed Aug 2, 2016
1 parent 6377dd1 commit 54ea891
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aqt/addons.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright: Damien Elmes <[email protected]>
# -*- coding: utf-8 -*-
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html

import io
import sys, os, traceback
from io import StringIO
import zipfile
Expand Down Expand Up @@ -133,7 +133,7 @@ def install(self, data, fname):
return
# .zip file
try:
z = ZipFile(StringIO(data))
z = ZipFile(io.BytesIO(data))
except zipfile.BadZipfile:
showWarning(_("The download was corrupt. Please try again."))
return
Expand Down

0 comments on commit 54ea891

Please sign in to comment.