mirror of
https://github.com/ferdzo/iotDashboard.git
synced 2026-04-05 17:16:26 +00:00
Fix code review issues: remove unused imports and fix exception handling
Co-authored-by: ferdzo <6640598+ferdzo@users.noreply.github.com>
This commit is contained in:
@@ -405,7 +405,7 @@ Keep all text concise: summary under 50 words, each item under 20 words.""",
|
||||
try:
|
||||
dt = datetime.fromisoformat(current_time.replace('Z', '+00:00'))
|
||||
time_str = dt.strftime("%A, %B %d at %I:%M %p")
|
||||
except:
|
||||
except (ValueError, AttributeError):
|
||||
time_str = current_time
|
||||
context_sections.append(f"Current Time: {time_str}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user