fix bug on Win10 #891

Merged
merged 3 commits into from Jan 4, 2018

Conversation

Projects
None yet
3 participants
Contributor

0chunhui commented Jan 4, 2018

本次 PR 主要做的事情:

fix bug on Win10

修改后最高分数:x

common/screenshot.py
- os.remove('autojump.png')
+ try:
+ os.remove('autojump.png')
+ except Exception,e:
@F-loat

F-loat Jan 4, 2018

Collaborator

except Exception as e:
这样吧,或者直接把 e 去了吧,也没用到

@0chunhui

0chunhui Jan 4, 2018

Contributor

好的

@MrLevo520

MrLevo520 Jan 4, 2018

Collaborator
#标准的写法应该是这样?
try:
    done
except Exception as ex:
    print (ex)
@F-loat

F-loat Jan 4, 2018

Collaborator

不影响执行的话,先别输出了

@F-loat F-loat referenced this pull request Jan 4, 2018

Closed

fix error reported on Win10 #822

@F-loat F-loat merged commit 16c4faf into wangshub:dev Jan 4, 2018

F-loat added a commit that referenced this pull request Jan 5, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment