Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Traceback (most recent call last):
- File "run.py", line 18, in <module>
- print(str(len(download.downloadRealmFiles('eu'))) + " EU files downloaded.")
- File "/var/www/etherealpost.com/scripts/ahdata/download.py", line 73, in downloadRealmFiles
- sql = u"UPDATE realms_lastmodified SET last_modified = '%d', latest_hash = '%s' WHERE region = '%s' AND realm = '%s'" % (lastModified, lastHash.encode('utf-8'), region.encode('utf-8'), realm)
- UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)
- realm = data['files'][0]['realm']
- lastHash = realmFile.split('/')[-2]
- lastModified = data['files'][0]['lastModified']
- dataURLs.append(realmFile)
- sql = u"UPDATE realms_lastmodified SET last_modified = '%d', latest_hash = '%s' WHERE region = '%s' AND realm = '%s'" % (lastModified, lastHash.encode('utf-8'), region.encode('utf-8'), realm.encode('utf-8'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement