Fixed Python3 bug.
[automanga.git] / manga / profile.py
index ecfb354..cc0a4a1 100644 (file)
@@ -256,7 +256,7 @@ class profile(object):
             raise KeyError("no such manga: (%s, %s)" % (libnm, id))
         while True:
             try:
-                fp = openwdir(pj(self.dir, "%i.manga" % seq), "wx")
+                fp = openwdir(pj(self.dir, "%i.manga" % seq), "x")
             except IOError:
                 seq += 1
             else: