Spaces:
Paused
Paused
Commit ·
b5d9316
1
Parent(s): 3149a5d
Fix indentation errors from debug cleanup
Browse files- Add missing 'pass' statements in empty except and else blocks
- Fix IndentationError in core/app.py and auth.py
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- core/app.py +2 -0
- src/config/auth.py +1 -0
core/app.py
CHANGED
|
@@ -126,6 +126,7 @@ class MetricsTracker:
|
|
| 126 |
# Added tokens to service
|
| 127 |
else:
|
| 128 |
# Not tracking tokens
|
|
|
|
| 129 |
|
| 130 |
def get_uptime(self):
|
| 131 |
return time.time() - self.start_time
|
|
@@ -939,6 +940,7 @@ def anthropic_messages():
|
|
| 939 |
# Anthropic response parsed
|
| 940 |
except:
|
| 941 |
# Could not parse response as JSON
|
|
|
|
| 942 |
|
| 943 |
if response.status_code == 200:
|
| 944 |
# Always try to count tokens, regardless of streaming
|
|
|
|
| 126 |
# Added tokens to service
|
| 127 |
else:
|
| 128 |
# Not tracking tokens
|
| 129 |
+
pass
|
| 130 |
|
| 131 |
def get_uptime(self):
|
| 132 |
return time.time() - self.start_time
|
|
|
|
| 940 |
# Anthropic response parsed
|
| 941 |
except:
|
| 942 |
# Could not parse response as JSON
|
| 943 |
+
pass
|
| 944 |
|
| 945 |
if response.status_code == 200:
|
| 946 |
# Always try to count tokens, regardless of streaming
|
src/config/auth.py
CHANGED
|
@@ -49,6 +49,7 @@ class AuthConfig:
|
|
| 49 |
return decoded
|
| 50 |
except Exception as e:
|
| 51 |
# Base64 decode error - using key as-is
|
|
|
|
| 52 |
|
| 53 |
# Return as-is (assume it's already JSON)
|
| 54 |
return key
|
|
|
|
| 49 |
return decoded
|
| 50 |
except Exception as e:
|
| 51 |
# Base64 decode error - using key as-is
|
| 52 |
+
pass
|
| 53 |
|
| 54 |
# Return as-is (assume it's already JSON)
|
| 55 |
return key
|