Skip to content

Commit ccbcb6a

Browse files
authored
Add files via upload
1 parent 9ba754e commit ccbcb6a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hashScript.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,15 @@ def main():
9999
f.write('{}:{}:{}'.format(file, alg, fileHasher(file, alg))+'\n')
100100
except:
101101
pass #to do ----> print error msgs to file
102-
else:
102+
elif args.outfile is None and args.file is not None:
103103
for alg in algList:
104104
for file in fileList:
105105
try:
106106
print('{}:{}:{}'.format(file, alg, fileHasher(file, alg)))
107107
except:
108108
pass #to do ----> print error msgs
109-
110-
109+
110+
111111
if __name__ == '__main__':
112112
main()
113113

0 commit comments

Comments
 (0)