Skip to content

Commit 6b327c1

Browse files
Update questions.py
1 parent adb63e3 commit 6b327c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AskUbuntu-Scraper/questions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def getQuestions(self):
6464
)
6565
json_data = json.dumps(questions_data)
6666
return json_data
67-
except:
67+
except ValueError:
6868
error_message = {"message": "No questions related to the topic found"}
6969
ejson = json.dumps(error_message)
7070
return ejson

0 commit comments

Comments
 (0)