duino-coin icon indicating copy to clipboard operation
duino-coin copied to clipboard

title(...) should disable itself if it fails; debug_output is not defined that early in the program

Open revoxhere opened this issue 6 months ago • 0 comments

As found by @igotek on Discord, there's an issue with set_title if the miner is started without a CLI

Ağu 18 22:10:37 orangepizero python3[1946]: AttributeError: 'NoneType' object has no attribute 'set_title'
Ağu 18 22:10:37 orangepizero python3[1946]: During handling of the above exception, another exception occurred:
Ağu 18 22:10:37 orangepizero python3[1946]: Traceback (most recent call last):
Ağu 18 22:10:37 orangepizero python3[1946]:   File "/home/orangepizero/duino-coin/PC_Miner.py", line 1390, in <module>
Ağu 18 22:10:37 orangepizero python3[1946]:     title(f"{get_string('duco_python_miner')}{str(Settings.VER)})")
Ağu 18 22:10:37 orangepizero python3[1946]:   File "/home/orangepizero/duino-coin/PC_Miner.py", line 201, in title
Ağu 18 22:10:37 orangepizero python3[1946]:     debug_output("Error setting title: " +str(e))
Ağu 18 22:10:37 orangepizero python3[1946]:     ^^^^^^^^^^^^
Ağu 18 22:10:37 orangepizero python3[1946]: NameError: name 'debug_output' is not defined

revoxhere avatar Aug 18 '24 20:08 revoxhere