Skip to content

Commit

Permalink
Feed the hobgoblins (delint).
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed May 22, 2018
1 parent ef5a440 commit 4c8c5ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rst/linker.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ def _get_scm_info_for(scm_version):
cmd = commands[scm]
try:
with open(os.devnull, 'w') as devnull:
ts = subprocess.check_output(cmd, stderr=devnull).decode('utf-8').strip()
out = subprocess.check_output(cmd, stderr=devnull)
ts = out.decode('utf-8').strip()
assert ts
ts = dateutil.parser.parse(ts)
except Exception:
Expand Down

0 comments on commit 4c8c5ba

Please sign in to comment.