mirror of
1
0
Fork 0

Clean up code

This commit is contained in:
Anish Athalye 2014-08-20 13:58:42 -07:00
parent 5103c10a5f
commit 09a80230f5
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
import os import os
from .executor import * from .executor import Executor
from .messenger import Messenger from .messenger import Messenger
class Dispatcher(object): class Dispatcher(object):

View File

@ -62,7 +62,7 @@ class Linker(Executor):
elif not self._exists(link_name) and self._exists(source): elif not self._exists(link_name) and self._exists(source):
try: try:
os.symlink(source, os.path.expanduser(link_name)) os.symlink(source, os.path.expanduser(link_name))
except OSError as e: except OSError:
self._log.warning('Linking failed %s -> %s' % (link_name, source)) self._log.warning('Linking failed %s -> %s' % (link_name, source))
else: else:
self._log.lowinfo('Creating link %s -> %s' % (link_name, source)) self._log.lowinfo('Creating link %s -> %s' % (link_name, source))