Exceptions loggen; jetzt ist tivomirror silent (-v verwenden)

This commit is contained in:
Stefan Bethke 2014-07-01 17:04:17 +00:00
parent 8cd90d5984
commit cc0e499908

View file

@ -1,6 +1,6 @@
#!/usr/local/bin/python
# $Schlepperbande: src/tivomirror/tivomirror,v 1.57 2014/07/01 07:04:45 stb Exp $
# $Schlepperbande: src/tivomirror/tivomirror,v 1.58 2014/07/01 16:57:33 stb Exp $
#
# Stefans Script, um die Sendungen vom Tivo runterzuladen und in MPEG4
# zu transkodieren.
@ -386,6 +386,7 @@ def main():
handler.setFormatter(logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s'))
logger.addHandler(handler)
try:
options, remainder = getopt.getopt(sys.argv[1:], 'dvT',
['ignoreepisodetitle'])
@ -411,6 +412,8 @@ def main():
mirror(dom, downloaddb)
downloaddb.close()
except Exception:
logger.exception("")
logger.info("*** Completed")
if __name__ == "__main__":