Skip to content

Commit c9cbddd

Browse files
committed
Fixed verbosity runtime errors associated with the changes made from
commit: 692c573
1 parent b954b27 commit c9cbddd

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

about_code_tool/about.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -901,11 +901,9 @@ def __init__(self, input_path, verbosity):
901901
assert exists(self.input_path)
902902

903903
# Setup the verbosity
904-
self.display_error = self.display_warning = False
905-
if verbosity >= 1:
906-
self.display_error = True
907-
elif verbosity >= 2:
908-
self.display_warning = True
904+
self.display_error = True if verbosity == "1" or verbosity == "2" \
905+
else False
906+
self.display_warning = True if verbosity == "2" else False
909907

910908
self.about_files = []
911909
self.about_objects = []

0 commit comments

Comments
 (0)