Skip to content

Commit

Permalink
Merge pull request #941 from onkelandy/database
Browse files Browse the repository at this point in the history
Database Plugin: Copy database method fix
  • Loading branch information
onkelandy committed Jul 5, 2024
2 parents d71e1f7 + c736882 commit fe63d0f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions database/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,16 +398,16 @@ def copy_databasefile(self):
database_name = ''

# copy the database file
self.logger.warning( f"Starting to copy SQLite3 database file from {database_name} to {self._copy_database_name}")
self.logger.info( f"Starting to copy SQLite3 database file from {database_name} to {self._copy_database_name}")
import shutil
try:
shutil.copy2(database_name, self._copy_database_name)
self.logger.warning("Finished copying SQLite3 database file")
self.logger.info("Finished copying SQLite3 database file")
except Exception as e:
self.logger.error( f"Error copying SQLite3 database file: {e}")

param_dict = {"copy_database": False}
self.update_config_section(param_dict)
#param_dict = {"copy_database": False}
#self.update_config_section(param_dict)
return


Expand Down

0 comments on commit fe63d0f

Please sign in to comment.