diff --git a/scripts/dump_crowdin_progress.py b/scripts/dump_crowdin_progress.py index c7d50032f..cdce9bd41 100644 --- a/scripts/dump_crowdin_progress.py +++ b/scripts/dump_crowdin_progress.py @@ -19,7 +19,7 @@ params = { resp = requests.get('https://api.crowdin.com/api/project/pyfa/status', params=params) data = resp.json() -if resp.status_code is not 200: +if resp.status_code != 200: print("Error fetching Crowdin progress. Error: {}; {}".format(data['error']['message'])) sys.exit() @@ -36,4 +36,4 @@ data = {x['canonical_name']: x for x in data} with open("locale/progress.json", 'w') as file: file.seek(0) file.truncate() - json.dump(data, file) \ No newline at end of file + json.dump(data, file)