Hi Confuzu,
Thank you, for 0.3 Bugfix and for the costant improvement of code's Error Handling.
If I may,
I'd like to suggest a little change at the code to further increase error handling (I analized and changed the lines through Pycharm and tested the code š ; as OS , I use Windows 10 on my PC)
changed line 182 of the code (and some others) as below:
with open(failed_downloads_file, "a", encoding='utf-8') as f:
(I simply added the argument: encoding='utf-8' at the function)
I made this change to bypass UnicodeEncodeError shown as below in the log:
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Francesco\AppData\Local\Programs\Python\Python310\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 152-157: character maps to <undefined>
Hi Confuzu, Thank you, for 0.3 Bugfix and for the costant improvement of code's Error Handling.
If I may, I'd like to suggest a little change at the code to further increase error handling (I analized and changed the lines through Pycharm and tested the code š ; as OS , I use Windows 10 on my PC)
changed line 182 of the code (and some others) as below:
with open(failed_downloads_file, "a", encoding='utf-8') as f:
(I simply added the argument: encoding='utf-8' at the function)
I made this change to bypass UnicodeEncodeError shown as below in the log:
I attach the code modified in the .ZIP.
civitAI_Model_downloader.zip
Hope this can help all you guys for a smoother download...š