Skip to content

Commit d8d44e1

Browse files
authored
Minor Fix by Callumgm
Minor Fix
2 parents 6cb1578 + 5856c76 commit d8d44e1

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

main.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
os.system("title Python Example")
1313
print("Initializing")
1414
def getchecksum():
15-
path = os.path.basename(__file__)
16-
if not os.path.exists(path):
17-
path = path[:-2] + "exe"
18-
md5_hash = hashlib.md5()
19-
a_file = open(path,"rb")
20-
content = a_file.read()
21-
md5_hash.update(content)
22-
digest = md5_hash.hexdigest()
23-
return digest
15+
path = os.path.basename(__file__)
16+
if not os.path.exists(path):
17+
path = path[:-2] + "exe"
18+
md5_hash = hashlib.md5()
19+
a_file = open(path,"rb")
20+
content = a_file.read()
21+
md5_hash.update(content)
22+
digest = md5_hash.hexdigest()
23+
return digest
2424

2525
keyauthapp = api(
2626
name = "",
@@ -124,4 +124,4 @@ def getchecksum():
124124
print(f"Current Session Validation Status: {keyauthapp.check()}")
125125
print("Exiting in 10 secs....")
126126
sleep(10)
127-
exit(0)
127+
sys.exit(0)

0 commit comments

Comments
 (0)