Skip to content
This repository has been archived by the owner on May 26, 2021. It is now read-only.

Commit

Permalink
issue-76: fixes partial coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
lowitea committed Mar 16, 2021
1 parent 09ec6df commit 60ab85c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions http_stubs/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def run_request_script(
:param request_body: text body from a request
"""
log: Optional[LogEntry] = None
if log_id:
if log_id is not None:
log = LogEntry.objects.get(pk=log_id)

loc = {'request_body': request_body, **restricted_builtins}
Expand All @@ -52,6 +52,6 @@ def run_request_script(
else:
log_msg = 'Done'

if log:
if log is not None:
log.result_script = log_msg
log.save()

0 comments on commit 60ab85c

Please sign in to comment.