aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-05-27 15:52:56 +0000
committerterminaldweller <thabogre@gmail.com>2021-05-27 15:52:56 +0000
commit49e81a8c0470e6df98493306917ab1744115c7b9 (patch)
treef0c72efe3a9a8537af03de5dd6250d673cea0fcd
parentadded an anime scraper. was wasting too much time checking them manually (diff)
downloadkaminokumo-49e81a8c0470e6df98493306917ab1744115c7b9.tar.gz
kaminokumo-49e81a8c0470e6df98493306917ab1744115c7b9.zip
a little fix
-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="")