bilelmoussaoui / Hardcode-Tray

Fixes Hardcoded tray icons in Linux
Other
863 stars 63 forks source link

Crash on Handling NoneType #675

Open Foggalong opened 3 years ago

Foggalong commented 3 years ago

Specifications

Expected behavior and actual behavior

Error occurs when trying to fix Skype, but looking at the log it doesn't seem to be related to any particular app but an improper handling of a NoneType object.

Caprine             [#######.............................] 1/5 20.0% 2.49s
Hamsket             [##############......................] 2/5 40.0% 1.70s
Skype               [######################..............] 3/5 60.0% 6.73s
Traceback (most recent call last):
  File "/usr/bin/hardcode-tray", line 121, in <module>
    App.execute()
  File "/usr/lib/python3.6/site-packages/HardcodeTray/app.py", line 120, in execute
    delta = app.do_action(action)
  File "/usr/lib/python3.6/site-packages/HardcodeTray/modules/applications/application.py", line 148, in do_action
    self.install()
  File "/usr/lib/python3.6/site-packages/HardcodeTray/decorators.py", line 58, in wrapper
    func(app)
  File "/usr/lib/python3.6/site-packages/HardcodeTray/modules/applications/application.py", line 96, in install
    self.execute(Action.APPLY)
  File "/usr/lib/python3.6/site-packages/HardcodeTray/modules/applications/helpers/binary.py", line 50, in execute
    self.install_icon(icon, icon_path)
  File "/usr/lib/python3.6/site-packages/HardcodeTray/modules/applications/b64electron.py", line 50, in install_icon
    file_content = asar.read_file(target).decode()
AttributeError: 'NoneType' object has no attribute 'decode'