Skip to content

Commit

Permalink
Fixing warning messages
Browse files Browse the repository at this point in the history
These are warnings not errors.
  • Loading branch information
sblisesivdin committed Jun 5, 2024
1 parent 618fa88 commit 23d25dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gpawsolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ def bandcalc(self, drawfigs = False):
for g in zip(*all_groupsd):
print('{} {} {}'.format(g[0][0], g[0][1], ' '.join(v for _, v in g[1:])), file=f1)
except Exception as e:
print("\033[93mWARNING:\033[0m An error occurred during writing XYYY formatted spin down Band file. Mostly, the file is created without any problem.")
print("\033[93mWARNING:\033[0m A problem occurred during writing XYYY formatted spin down Band file. Mostly, the file is created without any problem.")
print(e)
pass # Continue execution after encountering an exception

Expand All @@ -948,7 +948,7 @@ def bandcalc(self, drawfigs = False):
for g in zip(*all_groupsu):
print('{} {} {}'.format(g[0][0], g[0][1], ' '.join(v for _, v in g[1:])), file=f2)
except Exception as e:
print("\033[93mWARNING:\033[0m An error occurred during writing XYYY formatted spin up Band file. Mostly, the file is created without any problem.")
print("\033[93mWARNING:\033[0m A problem occurred during writing XYYY formatted spin up Band file. Mostly, the file is created without any problem.")
print(e)
pass # Continue execution after encountering an exception

Expand Down Expand Up @@ -979,7 +979,7 @@ def bandcalc(self, drawfigs = False):
for g in zip(*all_groups):
print('{} {} {}'.format(g[0][0], g[0][1], ' '.join(v for _, v in g[1:])), file=f1)
except Exception as e:
print("\033[93mWARNING:\033[0m An error occurred during writing XYYY formatted Band file. Mostly, the file is created without any problem.")
print("\033[93mWARNING:\033[0m A problem occurred during writing XYYY formatted Band file. Mostly, the file is created without any problem.")
print(e)
pass # Continue execution after encountering an exception

Expand Down

0 comments on commit 23d25dd

Please sign in to comment.