import sys
import os
import traceback

import wafel.log as log
import wafel.config as config

log.info('Wafel', config.version_str('.'))

config.init()

with open(config.log_file, 'a') as log_file:
  def append_to_log(message: log.LogMessage) -> None:
    log_file.write(str(message) + '\n')
    log_file.flush()
  log.subscribe(append_to_log)

  try:
    from wafel.main import run
    # import cProfile
    # cProfile.run('run()', sort='cumtime')
    run()
  except:
    log.error('Uncaught:', traceback.format_exc())
    sys.exit(1)

9efe66c6ee6aa6cde855835f8c8376858ffc2512
<mask token>

<mask token>
log.info('Wafel', config.version_str('.'))
config.init()
with open(config.log_file, 'a') as log_file:

    def append_to_log(message: log.LogMessage) ->None:
        log_file.write(str(message) + '\n')
        log_file.flush()
    log.subscribe(append_to_log)
    try:
        from wafel.main import run
        run()
    except:
        log.error('Uncaught:', traceback.format_exc())
        sys.exit(1)

import sys
import os
import traceback
import wafel.log as log
import wafel.config as config
log.info('Wafel', config.version_str('.'))
config.init()
with open(config.log_file, 'a') as log_file:

    def append_to_log(message: log.LogMessage) ->None:
        log_file.write(str(message) + '\n')
        log_file.flush()
    log.subscribe(append_to_log)
    try:
        from wafel.main import run
        run()
    except:
        log.error('Uncaught:', traceback.format_exc())
        sys.exit(1)

import sys
import os
import traceback

import wafel.log as log
import wafel.config as config

log.info('Wafel', config.version_str('.'))

config.init()

with open(config.log_file, 'a') as log_file:
  def append_to_log(message: log.LogMessage) -> None:
    log_file.write(str(message) + '\n')
    log_file.flush()
  log.subscribe(append_to_log)

  try:
    from wafel.main import run
    # import cProfile
    # cProfile.run('run()', sort='cumtime')
    run()
  except:
    log.error('Uncaught:', traceback.format_exc())
    sys.exit(1)
