Skip to content

Fix SyntaxError in main.py and add missing cryptography dependency - #1

Open
theyonecodes wants to merge 1 commit into
mainfrom
patchforge/fix-248956
Open

theyonecodes wants to merge 1 commit into
mainfrom
patchforge/fix-248956

Conversation

@theyonecodes

Copy link
Copy Markdown
Owner

Application Intent

Universal Browser Backup is a PowerShell + Python tool for backing up and restoring browser profiles across Chromium and Gecko browsers on Windows 10/11. It provides both a PowerShell/WPF GUI and a Python/PySide6 GUI with features including auto-detection of 20+ browsers, multi-profile backup/restore, AES-256-GCM encryption, SHA-256 manifest verification, scheduled backups, rollback protection, and Jev Router AI triage integration.

Summary

This PR fixes a build-breaking SyntaxError in main.py caused by malformed try/except blocks in the Jev Router triage methods. The threading logic was also corrected to properly run workers in background threads. Added cryptography to requirements.txt for AES-256-GCM encryption support.

Build Verification

  • Baseline Build: FAILED (Python 3 · python3 -m compileall -q .)
  • Post-Patch Build: PASSED (136ms · Python syntax and bytecode compilation succeeded.)

Findings Addressed

  • [CRITICAL] SyntaxError in main.py - missing except/finally block (main.py): Restructure both methods: move threading.Thread call outside worker function, add proper except blocks, remove direct worker() call.
  • [HIGH] Missing cryptography dependency in requirements.txt (requirements.txt): Add cryptography>=41.0.0 to requirements.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant