Skip to content

Commit

Permalink
cant renam, skip it, this is bad but does it even work ?
Browse files Browse the repository at this point in the history
  • Loading branch information
euri10 committed Nov 9, 2023
1 parent 5c08bd0 commit 01c177b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion johnnycanencrypt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,10 @@ def get_pid_using_file(file_path):
pid_using_file, name = get_pid_using_file(self.dbpath)
print(pid_using_file)
print(name)
os.rename(self.dbpath, oldpath)
try:
os.rename(self.dbpath, oldpath)
except OSError:
pass
self.dbpath = oldpath

def update_password(self, key: Key, password: str, newpassword: str) -> Key:
Expand Down

0 comments on commit 01c177b

Please sign in to comment.