Specifiekere error bij taalfout
This commit is contained in:
parent
c7ac053c52
commit
b683fa408f
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ def run(taal, start, stop):
|
|||
try:
|
||||
pagina = requests.get(base + converteer(start, False))
|
||||
except:
|
||||
return {'error': f"Er ging iets fout bij het inladen van '{start}'. Bestaat de website?"}
|
||||
return {'error': f"Er ging iets fout bij het inladen van '{start}'. Bestaat de taalcode?"}
|
||||
|
||||
# Stoppen indien het inladen van de pagina niet lukte.
|
||||
if pagina.status_code != 200:
|
||||
|
|
Reference in a new issue