Skip to content

Added new Exception raised when trying to load restricted work without session#114

Draft
Cyberpro54321 wants to merge 2 commits into
wendytg:masterfrom
Cyberpro54321:PR3
Draft

Added new Exception raised when trying to load restricted work without session#114
Cyberpro54321 wants to merge 2 commits into
wendytg:masterfrom
Cyberpro54321:PR3

Conversation

@Cyberpro54321

@Cyberpro54321 Cyberpro54321 commented Jun 15, 2025

Copy link
Copy Markdown

This PR adds a new Exception in Utils, the PrivateWorkError, which is called when works.get() detects it has been redirected to the login page, instead of the previous behavior where an AttributeError would be raised when the rest of works.py attempted to parse the login page as though it were a works page.

Works in the single test case I've tried so far, will mark as ready to merge once tested on a larger dataset.

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