Skip to content

Commit

Permalink
fix: bug in database creation process
Browse files Browse the repository at this point in the history
  • Loading branch information
Neo23x0 committed Oct 12, 2020
1 parent 74e95e7 commit f582ace
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yarGen.py
Expand Up @@ -7,7 +7,7 @@
#
# Florian Roth

__version__ = "0.23.2"
__version__ = "0.23.3"

import os
import sys
Expand Down Expand Up @@ -265,7 +265,7 @@ def parse_good_dir(dir, notRecursive=False, onlyRelevantExtensions=True):
print("[-] Cannot read file - skipping %s" % filePath)

# Extract strings from file
strings = extract_strings(str(fileData))
strings = extract_strings(fileData)
# Append to all strings
all_strings.update(strings)

Expand Down Expand Up @@ -1867,7 +1867,7 @@ def removeNonAsciiDrop(string):

def save(object, filename):
file = gzip.GzipFile(filename, 'wb')
file.write(json.dumps(object))
file.write(bytes(json.dumps(object), 'utf-8'))
file.close()


Expand Down

0 comments on commit f582ace

Please sign in to comment.