Skip to content
This repository has been archived by the owner on Jun 4, 2023. It is now read-only.

Commit

Permalink
comment correction
Browse files Browse the repository at this point in the history
  • Loading branch information
irmen committed Jun 5, 2019
1 parent b227b0b commit f848700
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Pyro4/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ def _configLogging():
logfile_dir = os.path.dirname(os.path.expanduser(logfilename))
tempfile = tempfile.TemporaryFile(dir=logfile_dir)
tempfile.close()
except OSError as x:
# cannot write in current directory, use the default console logger
except OSError:
# cannot write in the desired logfile directory, use the default console logger
logging.basicConfig(level=levelvalue)
logging.getLogger("Pyro4").warn("unable to write to the given logfile (access rights?), falling back to console logger")
logging.getLogger("Pyro4").warn("unable to write to the desired logfile (access rights?), falling back to console logger")
else:
# set up a basic logfile in current directory
logging.basicConfig(
Expand Down

0 comments on commit f848700

Please sign in to comment.