Skip to content

Commit

Permalink
fixed stupid mistakes 馃檮
Browse files Browse the repository at this point in the history
  • Loading branch information
christophevg committed Sep 17, 2023
1 parent af80073 commit fa2f7de
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pypi_template/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.3.1"
__version__ = "0.3.2"

import os
import datetime
Expand Down Expand Up @@ -245,6 +245,7 @@ def _collect_all_vars(self):
self._collect_var(var)

def _update(self, var, value):
self._start()
try:
current = self._template_vars[var]
except KeyError:
Expand All @@ -258,10 +259,12 @@ def _update(self, var, value):
}

def _append(self, var, value):
self._start()
try:
current = self._template_vars["skip"].copy()
current = self._template_vars[var].copy()
except KeyError:
current = []
self._debugging(f"appending {value} to {current}")
self._update(var, current + [value])

def _collect_var(self, var, force=False):
Expand Down

0 comments on commit fa2f7de

Please sign in to comment.