From ff48fc04d0001b98a7dcbd30cce67aa1135ef355 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Mon, 7 Nov 2022 02:37:23 +0530 Subject: [PATCH] [update] Use error code 100 for update errors This error code was previously used for "Exiting to finish update", but is no longer used Closes #5198 --- yt_dlp/update.py | 1 + 1 file changed, 1 insertion(+) diff --git a/yt_dlp/update.py b/yt_dlp/update.py index 026bc12aa4..70a1d6f7f8 100644 --- a/yt_dlp/update.py +++ b/yt_dlp/update.py @@ -174,6 +174,7 @@ def release_hash(self): def _report_error(self, msg, expected=False): self.ydl.report_error(msg, tb=False if expected else None) + self.ydl._download_retcode = 100 def _report_permission_error(self, file): self._report_error(f'Unable to write to {file}; Try running as administrator', True)