diff --git a/third_party/upload.py b/third_party/upload.py index 94935bf40..d48cb5dc1 100755 --- a/third_party/upload.py +++ b/third_party/upload.py @@ -2157,6 +2157,10 @@ def GuessVCSName(options): except OSError as e: if e.errno != errno.ENOENT: # command not found code raise + except ValueError as e: + # Workaround for https://bugs.python.org/issue26083 + if e.message != "insecure string pickle": + raise # Mercurial has a command to get the base directory of a repository # Try running it, but don't die if we don't have hg installed.