Skip to content

Commit

Permalink
Adjust the util.py for the cookie management
Browse files Browse the repository at this point in the history
  • Loading branch information
Gonchik Tsymzhitov committed Jan 14, 2021
1 parent 7a33ddf commit b4eff0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion atlassian/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.5.0
2.6.0
5 changes: 4 additions & 1 deletion atlassian/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,5 +332,8 @@ def parse_cookie_file(cookie_file):
for line in fp:
if not re.match(r"^(#|$)", line):
line_fields = line.strip().split("\t")
cookies[line_fields[5]] = line_fields[6]
try:
cookies[line_fields[5]] = line_fields[6]
except IndexError as e:
log.error(e)
return cookies

0 comments on commit b4eff0b

Please sign in to comment.