Skip to content

Commit

Permalink
fixed indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
quantenschaum committed Nov 29, 2017
1 parent cd5d813 commit c5ac623
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion piripherals/__version__.py
@@ -1,7 +1,7 @@
__title__ = 'piripherals'
__description__ = 'a collection of classes to interact with peripherals for the RaspberryPi'
__url__ = 'https://github.com/quantenschaum/piripherals'
__version__ = '0.1a7'
__version__ = '0.1a8'
__author__ = 'quantenschaum'
__author_email__ = 'software@louisenhof2.de'
__license__ = 'GPLv3'
Expand Down
14 changes: 7 additions & 7 deletions piripherals/mpd.py
Expand Up @@ -43,13 +43,13 @@ def __getattr__(self, name):
def with_reconnect(*args, **kwargs):
try:
return a(*args, **kwargs)
except (MPDConnectionError, ConnectionError, OSError) as e:
cargs = self._connect_args
if not cargs:
raise
cargs, ckwargs = cargs
self.connect(*cargs, **ckwargs)
return a(*args, **kwargs)
except (MPDConnectionError, ConnectionError, OSError) as e:
cargs = self._connect_args
if not cargs:
raise
cargs, ckwargs = cargs
self.connect(*cargs, **ckwargs)
return a(*args, **kwargs)

return with_reconnect

Expand Down

0 comments on commit c5ac623

Please sign in to comment.