diff --git a/upload.py b/upload.py index cf367f8..be8fc18 100755 --- a/upload.py +++ b/upload.py @@ -99,13 +99,8 @@ def _fetch_api_token(session): # api_token: "xoxs-12345-abcdefg....", # "api_token":"xoxs-12345-abcdefg....", match_group = API_TOKEN_PATTERN.match(line.strip()) - if not match_group: - raise ParseError( - "Could not parse API token from remote data! " - "Regex requires updating." - ) - - return match_group.group(1) + if match_group: + return match_group.group(1) print("No api_token found in page. Search your https://.slack.com/customize/emoji " "page source for \"api_token\" and enter its value manually.")