We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6a98ec commit ffb9f2bCopy full SHA for ffb9f2b
spotdl/console/entry_point.py
@@ -143,7 +143,15 @@ def graceful_exit(_signal, _frame):
143
query=arguments.query,
144
downloader=downloader,
145
)
146
- except Exception:
+ except Exception as exc:
147
+ if downloader_settings["save_errors"]:
148
+ with open(
149
+ downloader_settings["save_errors"], "a", encoding="utf-8"
150
+ ) as error_file:
151
+ error_file.write("\n".join([exc + "\n" for exc in exc.args]))
152
+
153
+ logger.debug("Saved errors to %s", downloader_settings["save_errors"])
154
155
end_time = time.perf_counter()
156
logger.debug("Took %d seconds", end_time - start_time)
157
0 commit comments