Skip to content

Commit a87e1e9

Browse files
committed
- Fixed not logging version and platform information in stable version
1 parent 2cc3421 commit a87e1e9

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

NSE_Option_Chain_Analyzer.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# noinspection PyAttributeOutsideInit
2828
class Nse:
2929
version: str = '5.2'
30-
beta: Tuple[bool, int] = (True, 15)
30+
beta: Tuple[bool, int] = (True, 16)
3131

3232
def __init__(self, window: Tk) -> None:
3333
self.intervals: List[int] = [1, 2, 3, 5, 10, 15]
@@ -768,11 +768,17 @@ def log(self, event: Optional[Event] = None) -> None:
768768
try:
769769
# noinspection PyProtectedMember,PyUnresolvedReferences
770770
base_path: str = sys._MEIPASS
771-
print(platform.system() + ' ' + platform.release() + ' .exe version ' + Nse.version +
772-
f" beta {Nse.beta[1]}" if Nse.beta[0] else '')
771+
print(platform.system() + ' ' + platform.release() + ' .exe version ' + Nse.version, end=' ')
772+
if Nse.beta[0]:
773+
print(f"beta {Nse.beta[1]}")
774+
else:
775+
print()
773776
except AttributeError:
774-
print(platform.system() + ' ' + platform.release() + ' .py version ' + Nse.version +
775-
f" beta {Nse.beta[1]}" if Nse.beta[0] else '')
777+
print(platform.system() + ' ' + platform.release() + ' .py version ' + Nse.version, end=' ')
778+
if Nse.beta[0]:
779+
print(f"beta {Nse.beta[1]}")
780+
else:
781+
print()
776782
if not self.load_nse_icon:
777783
print("NSE icon loading disabled")
778784

0 commit comments

Comments
 (0)