X-Git-Url: http://git.kaliko.me/?a=blobdiff_plain;f=sima%2Fcore.py;h=0aaebec498ff14cc8f9615f1844f363ff283e1f4;hb=ce32823ab9d41112d989f4543432926eb38487e6;hp=adbefa2218a3016fcf553f238cc75e5730be0479;hpb=69d10d0f55740591a43f4f49e90e09785ab0675f;p=mpd-sima.git diff --git a/sima/core.py b/sima/core.py index adbefa2..0aaebec 100644 --- a/sima/core.py +++ b/sima/core.py @@ -1,4 +1,22 @@ # -*- coding: utf-8 -*- +# Copyright (c) 2009, 2010, 2011, 2013, 2014 Jack Kaliko +# +# This file is part of sima +# +# sima is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# sima is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with sima. If not, see . +# +# """Core Object dealing with plugins and player client """ @@ -31,8 +49,7 @@ class Sima(Daemon): try: self.player.connect() except (PlayerError, PlayerUnHandledError) as err: - self.log.error('Fails to connect player: {}'.format(err)) - self.shutdown() + self.log.warning('Player: {}'.format(err)) self.short_history = deque(maxlen=60) def __get_player(self):