Skip to content

Commit af6d050

Browse files
authored
bugfix #12 (#14)
1 parent 55a1cb7 commit af6d050

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Compressor.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,11 @@ def load_decompress(view):
214214
'''
215215
filepath = view.file_name()
216216
window = view.window()
217+
218+
if window is None:
219+
# Sometime window can be None
220+
return
221+
217222
for item in window.views():
218223
if item.get_status('decompressed') == filepath:
219224
window.run_command('close_file')

0 commit comments

Comments
 (0)