8000 Instruct coverage to ignore module try/except handling · panta/fluent-logger-python@fdd3ab5 · GitHub
[go: up one dir, main page]

Skip to content

Commit fdd3ab5

Browse files
committed
Instruct coverage to ignore module try/except handling
1 parent 4b690c3 commit fdd3ab5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fluent/handler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55

66
try:
77
import simplejson as json
8-
except ImportError:
8+
except ImportError: # pragma: no cover
99
import json
1010

1111
try:
1212
basestring
13-
except NameError:
13+
except NameError: # pragma: no cover
1414
basestring = (str, bytes)
1515

1616
from fluent import sender

0 commit comments

Comments
 (0)
0