Permalink
Browse files

Handle FS access failing.

  • Loading branch information...
1 parent ec90a3a commit 4e4d1d53ba0fe675eda3355aa0218c229b18b665 @zts committed Sep 30, 2010
Showing with 4 additions and 1 deletion.
  1. +4 −1 doorbot.py
View
@@ -40,7 +40,10 @@ def reloadCardTable():
global mTime
global cards
- currentMtime = os.path.getmtime(cardFile)
+ try:
+ currentMtime = os.path.getmtime(cardFile)
+ except IOError, e:
+ print e
if mTime != currentMtime:
print "Loading card table, mtime %d" % currentMtime

0 comments on commit 4e4d1d5

Please sign in to comment.