convert py2 -> py3

This commit is contained in:
Ryan Petrello
2018-10-22 12:58:42 -04:00
parent f132ce9b64
commit f223df303f
202 changed files with 1137 additions and 2046 deletions

View File

@@ -3,6 +3,7 @@
# Python
import base64
import binascii
import re
# Django
@@ -38,6 +39,6 @@ class CustomLogoField(fields.CharField):
b64data = match.group(1)
try:
base64.b64decode(b64data)
except TypeError:
except (TypeError, binascii.Error):
self.fail('invalid_data')
return data