Skip to content

Commit 22bed93

Browse files
committed
Fix fetching translations
1 parent 208cfbd commit 22bed93

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

translations/management/commands/fetch_translations.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def handle(self, *args, **options):
3333

3434
has_next = True
3535
while has_next:
36+
data = ''
3637
try:
3738
handle = urllib.request.urlopen(self.API_URL)
3839
data = handle.read()
@@ -41,7 +42,8 @@ def handle(self, *args, **options):
4142
self.API_URL = content['next']
4243
except ValueError:
4344
print("There was a problem parsing the data from Hosted Weblate.")
44-
print(("Check the status of the feed page: " + URL))
45+
print(("Check the status of the feed page: " + self.API_URL))
46+
print(("Data: " + data))
4547
import sys
4648
sys.exit(1)
4749
self.handle_content(content['results'])

0 commit comments

Comments
 (0)