ZettaIO / restic-compose-backup

Automatic restic backup of a docker-compose setup. https://hub.docker.com/r/zettaio/restic-compose-backup
MIT License
29 stars 16 forks source link

docode issue when streaming logs #2

Closed einarf closed 4 years ago

einarf commented 4 years ago
2019-12-06 05:51:49,847 - ERROR: 'str' object has no attribute 'decode'
Traceback (most recent call last):
  File "/restic-compose-backup/restic_compose_backup/cli.py", line 100, in backup
    "com.docker.compose.project": containers.project_name,
  File "/restic-compose-backup/restic_compose_backup/backup_runner.py", line 49, in run
    for line in readlines(log_generator):
  File "/restic-compose-backup/restic_compose_backup/backup_runner.py", line 38, in readlines
    line += next(stream).decode()