Amm1rr / WebAI-to-API

Claude, Gemini to API : ) (Don't need API KEY)
MIT License
194 stars 39 forks source link

added small fix when get_Cookie() crashed the program #20

Closed niazlv closed 9 months ago

niazlv commented 9 months ago

Added a small fix that protects against browser cookie access errors. Example: self.__buffer = open(cookie_file, 'rb') ^^^^^^^^^^^^^^^^^^^^^^^ PermissionError: [Errno 1] Operation not allowed: '/Users/user/Library/Containers/com.apple.Safari/Data/Library/Cookies/Cookies.binarycookies'

The fix also added a new flag: ISCONFIGONLY Which disables attempts to read from browser cookies (some paranoid people will find it useful).