Skip to content

Commit

Permalink
Null CheckerResult.message on empty str (#72)
Browse files Browse the repository at this point in the history
* Null CheckerResult.message on empty str

* linter foo

* version bump
  • Loading branch information
MMunier authored Jul 13, 2020
1 parent 81ec781 commit 5469f62
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setuptools.setup(
name="enochecker",
version="0.2.2",
version="0.2.3",
author="domenukk",
author_email="dmaier@sect.tu-berlin.de",
description="Library to build checker scripts for EnoEngine A/D CTF Framework in Python",
Expand Down
4 changes: 4 additions & 0 deletions src/enochecker/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ def is_valid(cls, value: int) -> bool:

class CheckerResult:
def __init__(self, result: Result, message: Optional[str] = None) -> None:

if message == "":
message = None

self.result = result
self.message = message

Expand Down

0 comments on commit 5469f62

Please sign in to comment.