Commit 481592d4 authored by bescoto's avatar bescoto

Make sure backup_writer is set before using its logging


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@683 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 4eddb986
......@@ -247,7 +247,7 @@ or within one second of each other. Wait a second and try again.""" %
def write_if_open(cls, error_type, rp, exc):
"""Call cls.write(...) if error log open, only log otherwise"""
if not Globals.isbackup_writer:
if not Globals.isbackup_writer and Globals.backup_writer:
return Globals.backup_writer.log.ErrorLog.write_if_open(
error_type, rp, str(exc)) # convert exc bc of exc picking prob
if cls.isopen(): cls.write(error_type, rp, exc)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment