From 6cde75965137ebb56a98332bc8bdf514a14bfb49 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?bog=5F=E1=94=A6T?= <97702184+bog4t@users.noreply.github.com>
Date: Fri, 18 Feb 2022 08:28:53 -0500
Subject: [PATCH] fixed exception for posts with no tags

---
 furaffinity-dl.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/furaffinity-dl.py b/furaffinity-dl.py
index 7d7c5a7..ace8744 100755
--- a/furaffinity-dl.py
+++ b/furaffinity-dl.py
@@ -132,8 +132,11 @@ def download(path):
     }
 
     # Extact tags
-    for tag in s.find(class_='tags-row').findAll(class_='tags'):
-        data['tags'].append(tag.find('a').text)
+    try:
+        for tag in s.find(class_='tags-row').findAll(class_='tags'):
+            data['tags'].append(tag.find('a').text)
+    except:
+        pass
 
     # Extract comments
     for comment in s.findAll(class_='comment_container'):