Skip to content

Commit 7e4f1ca

Browse files
author
Jonathan Visser
committed
Fix linting issues
1 parent 71c883a commit 7e4f1ca

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

nginx_config_reloader/__init__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@
2424
from nginx_config_reloader.settings import (
2525
BACKUP_CONFIG_DIR,
2626
CUSTOM_CONFIG_DIR,
27-
MAIN_CONFIG_DIR,
2827
DIR_TO_WATCH,
2928
ERROR_FILE,
3029
FORBIDDEN_CONFIG_REGEX,
3130
MAGENTO1_CONF,
3231
MAGENTO2_CONF,
3332
MAGENTO_CONF,
33+
MAIN_CONFIG_DIR,
3434
NGINX,
3535
NGINX_PID_FILE,
3636
UNPRIVILEGED_GID,
@@ -200,9 +200,11 @@ def _apply(self):
200200
logger.debug("Applying new config")
201201
if self.check_no_forbidden_config_directives_are_present():
202202
return False
203-
203+
204204
if not self.check_can_write_to_main_config_dir():
205-
self.logger.error("No write permissions to main nginx config directory, please check your permissions.")
205+
self.logger.error(
206+
"No write permissions to main nginx config directory, please check your permissions."
207+
)
206208
return False
207209

208210
if not self.no_magento_config:

0 commit comments

Comments
 (0)