Skip to content

Commit c74677b

Browse files
committed
Fix swagger conf
1 parent 7a5d053 commit c74677b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyms/flask/app/swagger.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ def __init__(self):
1313
@property
1414
def path(self):
1515
path = self.config.path
16-
return path if path is not None else SWAGGER_PATH
16+
return path if path is "" or path != {} else SWAGGER_PATH
1717

1818
@property
1919
def file(self):
2020
swagger_file = self.config.file
21-
return swagger_file if swagger_file else SWAGGER_FILE
21+
return swagger_file if swagger_file is "" or swagger_file != {} else SWAGGER_FILE

0 commit comments

Comments
 (0)