aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xkaminokumo5
1 files changed, 4 insertions, 1 deletions
diff --git a/kaminokumo b/kaminokumo
index c14ae89..e8cbfce 100755
--- a/kaminokumo
+++ b/kaminokumo
@@ -88,7 +88,10 @@ def manga_scrape():
for thing in search:
re_res.append(re.findall("Chapter [0-9]*[.[0-9]*]?", thing.text))
# print(name, "-->", re_res[0][0])
- result += name + "-->" + re_res[0][0] + "\n"
+ try:
+ result += name + "-->" + re_res[0][0] + "\n"
+ except IndexError:
+ result += name + "--> nothing\n"
print(result, end="")