Skip to content

Commit

Permalink
Fix calling Profiler without timer
Browse files Browse the repository at this point in the history
  • Loading branch information
MoojMidge committed Mar 17, 2024
1 parent 098093c commit 85a8746
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources/lib/youtube_plugin/kodion/debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,10 @@ def wrapper(*args, **kwargs):
return wrapper

def _create_profiler(self):
self._profiler = self._Profile(timer=self._timer)
if self._timer:
self._profiler = self._Profile(timer=self._timer)
else:
self._profiler = self._Profile()
self._profiler.enable()

@classmethod
Expand Down

0 comments on commit 85a8746

Please sign in to comment.