Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

class Alpr: Set self.loaded to False before exception #953

Closed
wants to merge 1 commit into from

Conversation

cclauss
Copy link

@cclauss cclauss commented Nov 25, 2021

If an exception is raised (like line 62, etc.) then self.loaded is never defined so subsequent code fails when trying to determine if Alpr has successfully loaded. There are currently 46 open issues related to loaded. Many of these are AttributeError issues caused because self.loaded is only defined at the end of this method on (line 117).

Closes #311
Closes #414
Closes #426
Closes #461
Closes #508
Closes #533
Closes #660
Closes #732
Closes #738
Closes #764
Closes #806
Closes #837
Closes #913
Closes #916
Related to #555
Related to Homebrew/homebrew-core#89948
https://groups.google.com/g/openalpr/search?q=AttributeError

@matthill Your review, please.

There are currently [46 open issues related to `loaded`](https://github.com/openalpr/openalpr/search?p=2&q=loaded&type=issues).  Many of these [`AttributeError` issues](https://github.com/openalpr/openalpr/search?q=AttributeError&type=issues) are caused because `self.loaded` is only defined at the end of this method on (line 117).  If an exception is raised (like line 62, etc.) then `self.loaded` is _never_ defined so subsequent code fails when trying to determine if `Alpr` has successfully loaded.

Closes openalpr#311
Closes openalpr#414
Closes openalpr#426
Closes openalpr#461 
Closes openalpr#508
Closes openalpr#533
Closes openalpr#660
Closes openalpr#732
Closes openalpr#738
Closes openalpr#764
Closes openalpr#806
Closes openalpr#837 
Closes openalpr#913 
Closes openalpr#916 
Related to openalpr#555
Related to Homebrew/homebrew-core#89948
@CLAassistant
Copy link

CLAassistant commented Nov 25, 2021

CLA assistant check
All committers have signed the CLA.

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