daily cron

Traceback (most recent call last):
  File "updater.py", line 183, in <module>
    updater.iterate_links(force_groups)
  File "updater.py", line 167, in iterate_links
    self.save_raw(real_path, response, inset=api['path'])
  File "updater.py", line 86, in save_raw
    json.dump(raw.json(), tmp, indent=2)
  File "/usr/lib/python3/dist-packages/requests/models.py", line 898, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/lib/python3/dist-packages/simplejson/__init__.py", line 525, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode
    obj, end = self.raw_decode(s)
  File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 400, in raw_decode
    return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

real	40m42,726s
user	1m17,962s
sys	0m6,509s
This commit is contained in:
Sergio Álvarez 2021-05-24 14:49:45 +02:00
parent 56fd1b07d9
commit 4de6824f86
2 changed files with 13 additions and 65 deletions

View File

@ -24,20 +24,20 @@
} }
}, },
"population": { "population": {
"type": "FULL", "type": "HIGH",
"name": { "name": {
"en_US": "Full", "en_US": "High",
"es_MX": "Lleno", "es_MX": "Alto",
"pt_BR": "Completo", "pt_BR": "Alto",
"de_DE": "Voll", "de_DE": "Hoch",
"en_GB": "Full", "en_GB": "High",
"es_ES": "Lleno", "es_ES": "Alto",
"fr_FR": "Complet", "fr_FR": "\u00c9lev\u00e9e",
"it_IT": "Saturo", "it_IT": "Alta",
"ru_RU": "\u041d\u0435\u0442 \u043c\u0435\u0441\u0442", "ru_RU": "\u0412\u044b\u0441\u043e\u043a\u0430\u044f",
"ko_KR": "\uc815\uc6d0\ucd08\uacfc", "ko_KR": "\ud63c\uc7a1",
"zh_TW": "\u6eff", "zh_TW": "\u9ad8",
"zh_CN": "\u6ee1" "zh_CN": "\u9ad8"
} }
}, },
"realms": [ "realms": [

View File

@ -1,52 +0,0 @@
{
"_links": {
"self": {
"href": "https://us.api.blizzard.com/data/wow/title/19?namespace=static-9.0.5_37760-us"
}
},
"id": 19,
"name": {
"en_US": "First Sergeant",
"es_MX": "Gran capataz",
"pt_BR": "Primeiro-sargento",
"de_DE": "Rottenmeister",
"en_GB": "First Sergeant",
"es_ES": "Gran capataz",
"fr_FR": "Adjudant",
"it_IT": "Primo Sergente",
"ru_RU": "\u0421\u0442\u0430\u0440\u0448\u0438\u043d\u0430",
"ko_KR": "\ud558\uae09\ud22c\uc0ac",
"zh_TW": "\u4e00\u7b49\u58eb\u5b98",
"zh_CN": "\u4e00\u7b49\u519b\u58eb\u957f"
},
"gender_name": {
"male": {
"en_US": "First Sergeant {name}",
"es_MX": "Gran capataz {name}",
"pt_BR": "Primeiro-sargento {name}",
"de_DE": "Rottenmeister {name}",
"en_GB": "First Sergeant {name}",
"es_ES": "Gran capataz {name}",
"fr_FR": "Adjudant {name}",
"it_IT": "Primo Sergente {name}",
"ru_RU": "\u0421\u0442\u0430\u0440\u0448\u0438\u043d\u0430 {name}",
"ko_KR": "\ud558\uae09\ud22c\uc0ac {name}",
"zh_TW": "\u4e00\u7b49\u58eb\u5b98 {name}",
"zh_CN": "\u4e00\u7b49\u519b\u58eb\u957f {name}"
},
"female": {
"en_US": "First Sergeant {name}",
"es_MX": "Gran capataz {name}",
"pt_BR": "Primeiro-sargento {name}",
"de_DE": "Rottenmeisterin {name}",
"en_GB": "First Sergeant {name}",
"es_ES": "Gran capataz {name}",
"fr_FR": "Adjudant {name}",
"it_IT": "Primo Sergente {name}",
"ru_RU": "\u0421\u0442\u0430\u0440\u0448\u0438\u043d\u0430 {name}",
"ko_KR": "\ud558\uae09\ud22c\uc0ac {name}",
"zh_TW": "\u4e00\u7b49\u58eb\u5b98 {name}",
"zh_CN": "\u4e00\u7b49\u519b\u58eb\u957f {name}"
}
}
}