Skip to content

Commit

Permalink
Use {0:s}
Browse files Browse the repository at this point in the history
  • Loading branch information
berggren committed Oct 31, 2014
1 parent b1acaea commit 24deeda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/add_timeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def main():
elasticsearch.health(wait_for_status='yellow')
elasticsearch.put_mapping(args.index, 'plaso_event', mapping)
except (ConnectionError, ElasticHttpNotFoundError) as e:
sys.stderr.write('ERROR: ElasticSearch - {}\n'.format(repr(e)))
sys.stderr.write('ERROR: ElasticSearch - {0:s}\n'.format(repr(e)))
return 1

try:
Expand All @@ -102,7 +102,7 @@ def main():
sys.stderr.write('ERROR: Timeline already exists\n')
return 1
except (IntegrityError, ValueError) as e:
sys.stderr.write('ERROR: Timesketch - {}\n'.format(repr(e)))
sys.stderr.write('ERROR: Timesketch - {0:s}\n'.format(repr(e)))
return 1
# Make the timeline public by default.
timeline.make_public(user)
Expand Down

0 comments on commit 24deeda

Please sign in to comment.