Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Some more graceful handling of logging with only .pyc available

  • Loading branch information...
commit 2d0e5c3ef634499cb4e3b7c1750186023e557ebf 1 parent 7b42236
@eallik authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 spinoff/util/logging.py
View
4 spinoff/util/logging.py
@@ -233,8 +233,8 @@ def _do_write(level, *args, **kwargs):
elif caller_fn:
caller_fn._r_logstring = logstring
- logname = getattr(caller, '_r_logname', None)
- if not logname:
+ logname = getattr(caller, '_r_logname', None) if caller else ''
+ if logname is None:
logname = CYAN + get_logname(caller) + RESET_COLOR
if not hasattr(caller, '__slots__'):
caller._r_logname = logname
Please sign in to comment.
Something went wrong with that request. Please try again.