Skip to content

Commit

Permalink
Merge pull request #694 from UTDNebula/NP-92
Browse files Browse the repository at this point in the history
Fix(NP-92) Changing file to read binary
  • Loading branch information
akevinge authored Oct 2, 2023
2 parents 746cb0b + 42aedc9 commit 5c2c47e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions validator/scripts/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,9 @@ def createTicket(issueType: str, jira_connection: JIRA, URI: str, coursesImpacte
customfield_10016=1,
labels=["Engineering"],
)
f = open("description.txt", "r")
if os.path.getsize("description.txt"):
jira_connection.add_attachment(issue=ticket, attachment=f)
f.close()
with open("description.txt", "rb") as descriptionFile:
jira_connection.add_attachment(issue=ticket, attachment=descriptionFile)
os.remove("description.txt")

#Establishes JIRA connection and ierates through each major for versioning issues
Expand Down

0 comments on commit 5c2c47e

Please sign in to comment.