From d6a2af7bde22b8793263c9bda58f3a804c4ef815 Mon Sep 17 00:00:00 2001 From: james7132 Date: Thu, 27 Jul 2017 21:18:35 -0700 Subject: [PATCH] Strip whitespace from hashes --- src/ui.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ui.py b/src/ui.py index 9cd654a..aa98f3c 100644 --- a/src/ui.py +++ b/src/ui.py @@ -259,8 +259,8 @@ async def launcher_update_check(self): if '--test' in sys.argv or not hasattr(self.config, 'launcher_endpoint'): return - launcher_hash = sha256_hash(sys.executable) - logging.info('Launcher Hash: %s' % launcher_hash) + launcher_hash = sha256_hash(sys.executable).strip() + logging.info('Launcher Hash: "%s"' % launcher_hash) url = self.build_path(self.config.launcher_endpoint) hash_url = url + '.hash' logging.info('Fetching remote hash from: %s' % hash_url) @@ -288,8 +288,8 @@ async def launcher_update_check(self): "Check the log for details.")) return - remote_launcher_hash = response.text - logging.info('Remote launcher hash: %s' % remote_launcher_hash) + remote_launcher_hash = response.text.strip() + logging.info('Remote launcher hash: "%s"' % remote_launcher_hash) if remote_launcher_hash == launcher_hash: return logging.info('Fetching new launcher from: %s' % url)