We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f57dc4 commit 695185bCopy full SHA for 695185b
PyPassword/__main__.py
@@ -91,8 +91,11 @@ def check_files():
91
if custom_salt == '':
92
custom_salt = os.urandom(16)
93
94
+ else:
95
+ custom_salt = "b'" + custom_salt + "'"
96
+
97
with open(file('settings.py'), 'w') as f:
- f.write(f"# -*- coding: utf-8 -*-\nsalt = b'{custom_salt}'\n")
98
+ f.write(f"# -*- coding: utf-8 -*-\nsalt = {custom_salt}\n")
99
finally:
100
print('Settings OK!')
101
0 commit comments