RaghavenderReddy commited on
Commit
6da4a7f
·
verified ·
1 Parent(s): 0675dbd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -30,13 +30,9 @@ if 'user_location' not in st.session_state:
30
  if 'manual_location_mode' not in st.session_state:
31
  st.session_state.manual_location_mode = False
32
 
33
- # Create data directories if they don't exist with proper error handling
34
- try:
35
- os.makedirs('data', exist_ok=True)
36
- os.makedirs('data/images', exist_ok=True)
37
- except (OSError, PermissionError) as e:
38
- # If directories already exist or we have permission issues, continue
39
- pass
40
 
41
  # Initialize data files
42
  if not os.path.exists('data/users.json'):
 
30
  if 'manual_location_mode' not in st.session_state:
31
  st.session_state.manual_location_mode = False
32
 
33
+ # Create data directories if they don't exist
34
+ os.makedirs('data', exist_ok=True)
35
+ os.makedirs('data/images', exist_ok=True)
 
 
 
 
36
 
37
  # Initialize data files
38
  if not os.path.exists('data/users.json'):