Skip to content

Commit

Permalink
chg: dev: log when index error.
Browse files Browse the repository at this point in the history
  • Loading branch information
rachmadaniHaryono committed Jun 10, 2017
1 parent bca1102 commit 35d8b5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Magnet2Torrent.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"""

import logging
import os.path as pt
import shutil
import sys
Expand Down Expand Up @@ -172,7 +173,7 @@ def main():
output_name = unquote_plus(output_name)
output_name += '.torrent'
except IndexError:
pass
logging.error('magnet: {}'.format(magnet))

# return if user wants to skip existing file.
if output_name is not None and pt.isfile(output_name) and args.skip_file:
Expand Down

0 comments on commit 35d8b5a

Please sign in to comment.