Skip to content

Commit 4c17adf

Browse files
committed
Fix flake8 warnings
1 parent 5063572 commit 4c17adf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

investing_algorithm_framework/infrastructure/services/aws/state_handler.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,16 @@ def load(self, target_directory: str):
139139
# Final recursive fix
140140
_fix_permissions(target_directory)
141141

142-
# Add write permission to file (0o666 = rw-rw-rw-, then masked by umask)
142+
# Add write permission to file (
143+
# 0o666 = rw-rw-rw-, then masked by umask)
143144
db_file = os.path.join(target_directory,
144145
'databases/prod-database.sqlite3')
145146
if os.path.exists(db_file):
146147
os.chmod(db_file, 0o666)
147148
logger.info(
148-
f"Database file permissions after fix: {oct(os.stat(db_file).st_mode)}")
149+
f"Database file permissions "
150+
f"after fix: {oct(os.stat(db_file).st_mode)}"
151+
)
149152

150153
except (NoCredentialsError, PartialCredentialsError) as ex:
151154
logger.error(f"Error loading state from AWS S3: {ex}")

0 commit comments

Comments
 (0)