OSDN Git Service
(root)
/
fukui-no-namari
/
fukui-no-namari.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
576de1e
)
Prevent from saving an empty .cache file.
author
Aiwota Programmer
<aiwotaprog@tetteke.tk>
Tue, 22 Aug 2006 15:27:28 +0000
(
00:27
+0900)
committer
Aiwota Programmer
<aiwotaprog@tetteke.tk>
Tue, 22 Aug 2006 15:27:28 +0000
(
00:27
+0900)
src/Hage1/cachefile.py
patch
|
blob
|
history
diff --git
a/src/Hage1/cachefile.py
b/src/Hage1/cachefile.py
index
4c5bcdf
..
901994a
100644
(file)
--- a/
src/Hage1/cachefile.py
+++ b/
src/Hage1/cachefile.py
@@
-85,6
+85,10
@@
def save_cache(bbs, board, dic):
dic: dictionary of thread id and metadata dictionary
which key is in metadata_namelist
"""
+ # nothing to do if dic is empty
+ if not dic:
+ return
+
cachefile_path = misc.get_board_cache_path(bbs, board)
# create a directroy where .cache file is if not exists