Skip to content

Commit

Permalink
Fix log crash.
Browse files Browse the repository at this point in the history
  • Loading branch information
HsOjo committed Feb 1, 2020
1 parent 277bf92 commit 465f5b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/res/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class Const:
author = 'HsOjo'
app_name = 'SleeperX'
app_env = '%s_ENV' % app_name.upper()
version = '1.7.4'
version = '1.7.5'
github_page = 'https://github.com/%s/%s' % (author, app_name)
releases_url = '%s/releases' % github_page
protector = '[protector]'
Expand Down
2 changes: 1 addition & 1 deletion app/util/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Log:

@staticmethod
def init_app(keep_log=False):
mode = 'a' if keep_log else 'w+'
mode = 'a+' if keep_log else 'w+'
Log.io_log = open(Log.path_log, mode)
Log.io_err = open(Log.path_err, mode)

Expand Down

0 comments on commit 465f5b8

Please sign in to comment.