Skip to content

Commit 108e02b

Browse files
author
Aleksei_Philippov
committed
removed try-except stub
1 parent 9d8e495 commit 108e02b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

nginx.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -444,10 +444,7 @@ def loads(data, conf=True):
444444
kname, kval = re.match(key_regex, to_eval).group(1, 2)
445445
if "#" not in kname:
446446
k = Key(kname, kval)
447-
try:
448-
lopen[0].add(k)
449-
except:
450-
pass
447+
lopen[0].add(k)
451448
if re.match(r'(^(?!#)([^#]*[}]{1}\s*)$)|(\s*{$)', line_outside_quotes):
452449
closenum = len(re.findall('}', line_outside_quotes))
453450
while closenum > 0:

0 commit comments

Comments
 (0)