Skip to content

Commit b7c3e7a

Browse files
committed
minor fix: listing exceptions to prevent catch-all
1 parent 56b1171 commit b7c3e7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scrapely/tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def _load_template(self, template_id):
122122
templates = self._load_templates()
123123
try:
124124
return templates[int(template_id)]
125-
except:
125+
except (IndexError, ValueError):
126126
print 'Could not load template: %s' % template_id
127127

128128
def _load_templates(self):

0 commit comments

Comments
 (0)