Conversation
Code ReviewFound 7 critical SyntaxError issues that will prevent the calendar service from loading. Python 3 Exception Handling Syntax ErrorsAll 7 issues involve the same problem: parentheses were removed from except clauses that catch multiple exception types. In Python 3, this syntax is invalid. The Problem:
Impact: These are SyntaxErrors that occur at import time, which means the calendar service will completely fail to load. Issues Found:1. backend/src/services/calendar/api/methods.py:162# Current (INVALID):
except ValueError, AttributeError:
# Should be:
except (ValueError, AttributeError):agent-diff/backend/src/services/calendar/api/methods.py Lines 159 to 165 in 1a87ed6 2. backend/src/services/calendar/api/methods.py:329# Current (INVALID):
except ValueError, TypeError:
# Should be:
except (ValueError, TypeError):agent-diff/backend/src/services/calendar/api/methods.py Lines 326 to 332 in 1a87ed6 3. backend/src/services/calendar/api/methods.py:356# Current (INVALID):
except ValueError, TypeError:
# Should be:
except (ValueError, TypeError):agent-diff/backend/src/services/calendar/api/methods.py Lines 353 to 359 in 1a87ed6 4. backend/src/services/calendar/database/operations.py:2006# Current (INVALID):
except ValueError, TypeError:
# Should be:
except (ValueError, TypeError):agent-diff/backend/src/services/calendar/database/operations.py Lines 2003 to 2009 in 1a87ed6 5. backend/src/services/calendar/database/operations.py:2573# Current (INVALID):
except KeyError, ValueError:
# Should be:
except (KeyError, ValueError):agent-diff/backend/src/services/calendar/database/operations.py Lines 2570 to 2576 in 1a87ed6 6. backend/src/services/calendar/database/operations.py:2729# Current (INVALID):
except KeyError, ValueError:
# Should be:
except (KeyError, ValueError):agent-diff/backend/src/services/calendar/database/operations.py Lines 2726 to 2732 in 1a87ed6 7. backend/src/services/calendar/database/operations.py:2742# Current (INVALID):
except KeyError, ValueError:
# Should be:
except (KeyError, ValueError):agent-diff/backend/src/services/calendar/database/operations.py Lines 2739 to 2745 in 1a87ed6 Recommended FixRestore the parentheses in all 7 except clauses. This can be done with a find-and-replace:
|
No description provided.