X-Git-Url: https://www.irasnyder.com/gitweb/?p=rarslave2.git;a=blobdiff_plain;f=rarslave.py;h=20c028840d3f38f43fb57475301a3e3b9aaf760e;hp=1a7e4bcbb8cad8536c196c0f38c2d8b925f47069;hb=HEAD;hpb=78892b0b94926306d65605778bc0b83af0390c77;ds=sidebyside diff --git a/rarslave.py b/rarslave.py index 1a7e4bc..20c0288 100755 --- a/rarslave.py +++ b/rarslave.py @@ -43,7 +43,7 @@ import PAR2Set class RarslaveConfig(object): DEFAULT_CONFIG_FILE = PAR2Set.utils.absolutePath( - os.path.join('~', '.config', 'rarslave2', 'rarslave2.conf')) + os.path.join('~', '.config', 'rarslave', 'rarslave.conf')) def __init__(self, fileName=DEFAULT_CONFIG_FILE): @@ -269,6 +269,7 @@ def findUniqueSets(directory, files): def runEachType(cs, options): types = ( + PAR2Set.JoinProtected, PAR2Set.Join, PAR2Set.ZIP, PAR2Set.OldRAR, @@ -323,8 +324,12 @@ def runDirectory(directory, files, options): for cs in sets: try: runEachType(cs, options) - except: + except Exception, e: + import traceback logging.error('Unknown Exception: %s' % cs.parityFile) + logging.error('===== BEGIN Bactrace =====') + [logging.error(l) for l in traceback.format_exc(e).split('\n')] + logging.error('===== END Bactrace =====') ################################################################################