We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adb63e3 commit 6b327c1Copy full SHA for 6b327c1
AskUbuntu-Scraper/questions.py
@@ -64,7 +64,7 @@ def getQuestions(self):
64
)
65
json_data = json.dumps(questions_data)
66
return json_data
67
- except:
+ except ValueError:
68
error_message = {"message": "No questions related to the topic found"}
69
ejson = json.dumps(error_message)
70
return ejson
0 commit comments