Defalt-404 commited on
Commit
66690fd
·
1 Parent(s): f3d6ec3

deleted except

Browse files
Files changed (1) hide show
  1. server.py +2 -6
server.py CHANGED
@@ -8,15 +8,11 @@ import tempfile
8
  def get_secrets(file):
9
  file_path = f'/run/secrets/{file}'
10
  print('in get_secrets function')
11
- try:
12
- with open(file_path, 'r') as file:
13
  secret_example = file.read()
14
  print('The content of SECRET_EXAMPLE is:', secret_example)
15
  return secret_example
16
- except FileNotFoundError:
17
- print('File not found:', file_path)
18
- except PermissionError:
19
- print('Permission denied. Make sure you have the necessary permissions to read the file.')
20
 
21
  def create_app():
22
  app = Flask(__name__)
 
8
  def get_secrets(file):
9
  file_path = f'/run/secrets/{file}'
10
  print('in get_secrets function')
11
+
12
+ with open(file_path, 'r') as file:
13
  secret_example = file.read()
14
  print('The content of SECRET_EXAMPLE is:', secret_example)
15
  return secret_example
 
 
 
 
16
 
17
  def create_app():
18
  app = Flask(__name__)