Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Network Health
sbws
Commits
ef6e152b
Commit
ef6e152b
authored
Jun 14, 2018
by
Matt Traudt
Browse files
Fix two linter warnings
parent
c47238dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
sbws/lib/v3bwfile.py
View file @
ef6e152b
...
...
@@ -75,7 +75,7 @@ def read_started_ts(conf):
"""
try
:
filepath
=
conf
[
'paths'
][
'started_filepath'
]
except
TypeError
as
e
:
except
TypeError
:
return
''
try
:
with
FileLock
(
filepath
):
...
...
@@ -184,7 +184,7 @@ class V3BwHeader(object):
assert
isinstance
(
lines
,
list
)
try
:
index_terminator
=
lines
.
index
(
TERMINATOR
)
except
ValueError
as
e
:
except
ValueError
:
# is not a bw file or is v100
log
.
warn
(
'Terminator is not in lines'
)
return
None
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment