wakatime / sublime-wakatime

Sublime Text 2 & 3 plugin for automatic time tracking and metrics generated from your programming activity.
https://wakatime.com/sublime-text
BSD 3-Clause "New" or "Revised" License
525 stars 47 forks source link

Fix AttributeError: 'NoneType' object has no attribute 'folders' #35

Closed sisou closed 9 years ago

sisou commented 9 years ago

Error:

Traceback (most recent call last):
  File ".\sublime_plugin.py", line 195, in on_modified
  File ".\sublime_plugin.py", line 154, in run_timed_function
  File ".\sublime_plugin.py", line 194, in <lambda>
  File ".\WakaTime.py", line 282, in on_modified
  File ".\WakaTime.py", line 156, in handle_action
AttributeError: 'NoneType' object has no attribute 'folders'

As suggested here: http://www.sublimetext.com/forum/viewtopic.php?f=6&t=9629

alanhamlett commented 9 years ago

Fixed with 911b5656d7c1be4f2e8e23acd369872897f23a12

Sorry, didn't notice this was a pull request or would have merged it.