"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cobbler/cexceptions.py" between
cobbler-2.8.4.tar.gz and cobbler-3.0.0.tar.gz

About: cobbler is a Linux installation and deployment server that allows for rapid setup of network installation environments. It can help with installation, DNS, DHCP, package updates, power management, configuration management orchestration, and much more.

cexceptions.py  (cobbler-2.8.4):cexceptions.py  (cobbler-3.0.0)
skipping to change at line 23 skipping to change at line 23
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA 02110-1301 USA
""" """
import exceptions from builtins import Exception
TEST_MODE = False class CobblerException(Exception):
class CobblerException(exceptions.Exception): def __init__(self, value, *args):
self.value = value % args
# this is a hack to work around some odd exception handling
# in older pythons
self.from_cobbler = 1
def __init__(self, value, *args): def __str__(self):
self.value = value % args return repr(self.value)
# this is a hack to work around some odd exception handling
# in older pythons
self.from_cobbler = 1
def __str__(self):
return repr(self.value)
class CX(CobblerException): class CX(CobblerException):
pass pass
class FileNotFoundException(CobblerException): class FileNotFoundException(CobblerException):
pass pass
class NotImplementedException(CobblerException):
pass
 End of changes. 6 change blocks. 
12 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)